1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-13 05:31:02 +08:00

small refactor according to go vet check results

This commit is contained in:
Wang Bin
2015-05-04 18:56:55 +08:00
parent cfed2de1cd
commit 87caff09cb
4 changed files with 9 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ func NewStopWord() *StopWord {
return s
}
func (s StopWord) IsStopWord(word string) bool {
func (s *StopWord) IsStopWord(word string) bool {
s.RLock()
_, ok := s.stopWordMap[word]
s.RUnlock()