aboutsummaryrefslogtreecommitdiff
path: root/src/bytes
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytes')
-rw-r--r--src/bytes/bytes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes/bytes.go b/src/bytes/bytes.go
index 95afb30b40..c84accd8f5 100644
--- a/src/bytes/bytes.go
+++ b/src/bytes/bytes.go
@@ -1331,7 +1331,7 @@ func Index(s, sep []byte) int {
// we should cutover at even larger average skips,
// because Equal becomes that much more expensive.
// This code does not take that effect into account.
- j := bytealg.IndexRabinKarpBytes(s[i:], sep)
+ j := bytealg.IndexRabinKarp(s[i:], sep)
if j < 0 {
return -1
}