Explorar el Código

Add comments

master
Matt Baer hace 8 años
padre
commit
34f32661fd
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      punctuation.go

+ 3
- 0
punctuation.go Ver fichero

@@ -7,8 +7,11 @@ import (
"strings"
)

// valid characters to extract
const validPunc = ";:'\",!?.-()"

// Extract scans the given File and returns only typical punctuation used in
// prose.
func Extract(f *os.File) string {
var out string
in := bufio.NewScanner(f)


Cargando…
Cancelar
Guardar