diff options
Diffstat (limited to 'src/bytes/bytes.go')
| -rw-r--r-- | src/bytes/bytes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes/bytes.go b/src/bytes/bytes.go index 9ee66cae4e..95afb30b40 100644 --- a/src/bytes/bytes.go +++ b/src/bytes/bytes.go @@ -122,7 +122,7 @@ func LastIndex(s, sep []byte) int { return -1 } // Rabin-Karp search from the end of the string - hashss, pow := bytealg.HashStrRevBytes(sep) + hashss, pow := bytealg.HashStrRev(sep) last := len(s) - n var h uint32 for i := len(s) - 1; i >= last; i-- { |
