Skip to content

Commit c09632a

Browse files
Julien "_FrnchFrgg_" RIVAUDianbruene
authored andcommitted
Fix a continue not targetting the intended loop
The continue was intended to start the next iteration of the outer loop, not the inner one.
1 parent a5f596a commit c09632a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

difflib/difflib.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ func newB2J (b []string) *B2J {
9999
// The content already has a slot in its hash bucket. Just
100100
// append the newly seen index to the slice in that slot
101101
b2j.store[h][slotIndex] = append(slot, lineno)
102-
continue
102+
goto cont
103103
}
104104
}
105105
// The line content still has no slot. Create one with a single value.
106106
b2j.store[h] = append(b2j.store[h], []int{lineno})
107+
cont:
107108
}
108109
return &b2j
109110
}

0 commit comments

Comments
 (0)