Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Mar 11, 2020
1 parent 66e81e3 commit d4519fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions string/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ func IndexAllIgnoreCaseUnicode(haystack string, needle string, limit int) [][]in
// If the needle is over some amount of characters long you chop off the first few
// and then search for those. However this means you are not finding actual matches and as such
// you the need to validate a potential match after you have found one.
// In this case the confirmation match is done using regular expressions
// because its faster than checking for all case options for longer needles.
// The confirmation match is done in a loop because for some literals regular expression
// is still to slow, although for most its a valid option.

locs := [][]int{}
// Char limit is the cut-off where we switch from all case permutations
Expand Down

0 comments on commit d4519fa

Please sign in to comment.