1
0
mirror of https://github.com/thebaer/punctuation.git synced 2018-07-20 08:25:21 +00:00

Add comments

This commit is contained in:
Matt Baer 2016-02-26 13:58:06 -05:00
parent fe0a21acec
commit 34f32661fd

View File

@ -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)