Skip to content

Commit

Permalink
strings: fix nonexistent path in comment
Browse files Browse the repository at this point in the history
There is a part in the comment that points to a non-existent file.
It seems to have been overlooked in following PR.
https://go-review.googlesource.com/c/go/+/98518/

Change-Id: I21dbfbd270c654d5cd7fa88d114a356862612d90
Reviewed-on: https://go-review.googlesource.com/c/go/+/210298
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
po3rin authored and bradfitz committed Dec 6, 2019
1 parent b2a5893 commit bf86582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strings/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ func Index(s, substr string) int {
i++
fails++
if fails >= 4+i>>4 && i < t {
// See comment in ../bytes/bytes_generic.go.
// See comment in ../bytes/bytes.go.
j := indexRabinKarp(s[i:], substr)
if j < 0 {
return -1
Expand Down

0 comments on commit bf86582

Please sign in to comment.