Skip to content

Commit

Permalink
fix: fix simsearch tolerance range into 1
Browse files Browse the repository at this point in the history
  • Loading branch information
terasum committed Sep 18, 2023
1 parent b37aca1 commit eac2407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/gomdict/mdict.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (mdict *Mdict) Search(word string) ([]*MDictKeyBlockEntry, error) {
if mdict.bktree == nil {
return nil, errors.New("bktree hasn't build yet")
}
result, err := mdict.SimSearch(word, 2)
result, err := mdict.SimSearch(word, 1)
return result, err
}

Expand Down

0 comments on commit eac2407

Please sign in to comment.