瀏覽代碼

Add comments

master
Matt Baer 8 年之前
父節點
當前提交
34f32661fd
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      punctuation.go

+ 3
- 0
punctuation.go 查看文件

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


Loading…
取消
儲存