mirror of
https://github.com/golang/go
synced 2024-11-22 08:24:41 -07:00
bytes: fix a typo
Change-Id: Ibfe8be07c71b43c107149755b787af67c5b9e1ef
This commit is contained in:
parent
2cee5d8109
commit
ed6c744bbd
@ -187,7 +187,7 @@ func IndexRune(s []byte, r rune) int {
|
||||
return -1
|
||||
|
||||
fallback:
|
||||
// Switch to bytealg.Index, if available, or a brute for search when
|
||||
// Switch to bytealg.Index, if available, or a brute force search when
|
||||
// IndexByte returns too many false positives.
|
||||
if haveFastIndex {
|
||||
if j := bytealg.Index(s[i-last:], b[:n]); j >= 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user