From 96d8ff00c2d6a88384863a656fb5e53716b614d3 Mon Sep 17 00:00:00 2001 From: Jes Cok <xigua67damn@gmail.com> Date: Fri, 23 Aug 2024 13:19:17 +0000 Subject: [PATCH] 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: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bytes/bytes.go b/src/bytes/bytes.go index ac15ab9b69a..bdb03668973 100644 --- a/src/bytes/bytes.go +++ b/src/bytes/bytes.go @@ -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 { -- GitLab