aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpo3rin <abctail30@gmail.com>2019-12-07 04:44:39 +0900
committerBrad Fitzpatrick <bradfitz@golang.org>2019-12-06 20:12:47 +0000
commitbf865823baecefbf2996a9b56bdb8b73a387fbc9 (patch)
treed15afd69834a41dbf3563383e08a2a3d0cdd3642
parentb2a5893f44ee4426caffc33bbca907a05efe6b57 (diff)
downloadgo-bf865823baecefbf2996a9b56bdb8b73a387fbc9.tar.gz
go-bf865823baecefbf2996a9b56bdb8b73a387fbc9.zip
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 <bradfitz@golang.org>
-rw-r--r--src/strings/strings.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings/strings.go b/src/strings/strings.go
index 869cdcdcef..69f51b6e2d 100644
--- a/src/strings/strings.go
+++ b/src/strings/strings.go
@@ -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