]> Cypherpunks repositories - gostls13.git/commitdiff
strings: fix nonexistent path in comment
authorpo3rin <abctail30@gmail.com>
Fri, 6 Dec 2019 19:44:39 +0000 (04:44 +0900)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 6 Dec 2019 20:12:47 +0000 (20:12 +0000)
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>
src/strings/strings.go

index 869cdcdcefb3d5c22875cf4b3fb82cab16583aa5..69f51b6e2d42d80fb0717fd7877765f69cce8176 100644 (file)
@@ -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