aboutsummaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorhopehook <hopehook.com@gmail.com>2022-04-07 23:53:12 +0800
committerGopher Robot <gobot@golang.org>2022-04-07 23:06:24 +0000
commitc451a02a6d3e95d279260bd8c1edae676d62997d (patch)
tree5645f89509102acfd1b2bd3b3963a1344e6e4d63 /src/strings
parent8d581f589eb9b9eac05c75f0dfe82a49c3afcd2f (diff)
downloadgo-c451a02a6d3e95d279260bd8c1edae676d62997d.tar.xz
strings, bytes: improve the description of simple case-folding in EqualFold
This CL removes the problem description pointed out by @bjkail. Second, synchronously modify the comments of the bytes package. Updates #52022 Fixes #52204 Change-Id: I0aa52c774f40bb91f32bebdd2a62a11067a77be0 Reviewed-on: https://go-review.googlesource.com/c/go/+/398736 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Auto-Submit: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Trust: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/strings')
-rw-r--r--src/strings/strings.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/strings/strings.go b/src/strings/strings.go
index 74e505338e..8294f7ec35 100644
--- a/src/strings/strings.go
+++ b/src/strings/strings.go
@@ -1043,8 +1043,6 @@ func ReplaceAll(s, old, new string) string {
// EqualFold reports whether s and t, interpreted as UTF-8 strings,
// are equal under simple Unicode case-folding, which is a more general
// form of case-insensitivity.
-//
-// EqualFold(s, t) is equivalent to Tolower(s) == Tolower(t).
func EqualFold(s, t string) bool {
for s != "" && t != "" {
// Extract first rune from each string.