Skip to content
Snippets Groups Projects
Commit 96d8ff00 authored by Jes Cok's avatar Jes Cok Committed by Gopher Robot
Browse files

bytes: fix a typo

Change-Id: Iecbfe986da386b5c9b8c366904f659acc8f34cfc
GitHub-Last-Rev: ed6c744bbd9ff61874e8dd92f4cef01851ed1f09
GitHub-Pull-Request: golang/go#69039
Reviewed-on: https://go-review.googlesource.com/c/go/+/608015


Reviewed-by: default avatarIan Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: default avatarCherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
parent 08707d66
Branches
Tags
No related merge requests found
...@@ -187,7 +187,7 @@ func IndexRune(s []byte, r rune) int { ...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment