Skip to content

Commit

Permalink
[spellcheck] Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Mar 4, 2025
1 parent 7495d9c commit 8cd70d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spellcheck/spellcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (m *Model) Suggest(word string, max int) []string {

var result []string

for i := 0; i < mathutil.Between(max, 1, len(sis)); i++ {
for i := range mathutil.Between(max, 1, len(sis)) {
result = append(result, sis[i].term)
}

Expand Down

0 comments on commit 8cd70d9

Please sign in to comment.