Skip to content

Commit

Permalink
Fixed specification
Browse files Browse the repository at this point in the history
  • Loading branch information
LyricTian committed Apr 12, 2016
1 parent e6c84d8 commit 786627d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nodefilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func NewNodeChanFilter(text <-chan string) DirtyFilter {
return nf
}

// NewNodeChanFilter 创建节点过滤器,实现敏感词的过滤
// NewNodeFilter 创建节点过滤器,实现敏感词的过滤
// 从切片中读取敏感词数据
func NewNodeFilter(text []string) DirtyFilter {
nf := &nodeFilter{
Expand Down
2 changes: 1 addition & 1 deletion store/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func NewMongoStore(config MongoConfig) (*MongoStore, error) {
} else if config.Session != nil {
session = config.Session
} else {
return nil, errors.New("未知的MongoDB连接!")
return nil, errors.New("未知的MongoDB连接")
}
if config.Collection == "" {
config.Collection = DefaultCollection
Expand Down

0 comments on commit 786627d

Please sign in to comment.