Skip to content

Commit c462654

Browse files
committed
Bug fix
1 parent ea51ccf commit c462654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

single_byte.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (s *ngramState) lookup() bool {
8989

9090
func (r *recognizerSingleByte) parseNgram(input []byte) int {
9191
state := newNgramState(r.ngram)
92-
for inChar := range input {
92+
for _, inChar := range input {
9393
c := r.charMap[inChar]
9494
if c != 0 {
9595
state.AddByte(c)

0 commit comments

Comments
 (0)