1
0
mirror of https://github.com/golang/go synced 2024-11-22 13:45:00 -07:00

bytes: fix a typo

Change-Id: Ibfe8be07c71b43c107149755b787af67c5b9e1ef
This commit is contained in:
Jes Cok 2024-08-23 21:09:13 +08:00
parent 2cee5d8109
commit ed6c744bbd

View File

@ -187,7 +187,7 @@ func IndexRune(s []byte, r rune) int {
return -1 return -1
fallback: 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. // IndexByte returns too many false positives.
if haveFastIndex { if haveFastIndex {
if j := bytealg.Index(s[i-last:], b[:n]); j >= 0 { if j := bytealg.Index(s[i-last:], b[:n]); j >= 0 {