mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-26 06:50:23 +08:00
code refactor, added more documents
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
func chanToArray(ch chan string) []string {
|
||||
result := make([]string, 0)
|
||||
var result []string
|
||||
for word := range ch {
|
||||
result = append(result, word)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user