Skip to content

Commit bf86582

Browse files
po3rinbradfitz
authored andcommitted
strings: fix nonexistent path in comment
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 <[email protected]>
1 parent b2a5893 commit bf86582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strings/strings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ func Index(s, substr string) int {
10941094
i++
10951095
fails++
10961096
if fails >= 4+i>>4 && i < t {
1097-
// See comment in ../bytes/bytes_generic.go.
1097+
// See comment in ../bytes/bytes.go.
10981098
j := indexRabinKarp(s[i:], substr)
10991099
if j < 0 {
11001100
return -1

0 commit comments

Comments
 (0)