]> Cypherpunks repositories - gostls13.git/commitdiff
bytes: fix a typo
authorJes Cok <xigua67damn@gmail.com>
Fri, 23 Aug 2024 13:19:17 +0000 (13:19 +0000)
committerGopher Robot <gobot@golang.org>
Sat, 24 Aug 2024 00:51:40 +0000 (00:51 +0000)
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: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/bytes/bytes.go

index ac15ab9b69a56d32ee953173c453dc6c07c20443..bdb036689733e6959a29068cbc255f44e54cf6fb 100644 (file)
@@ -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 {