diff options
author | hopehook <hopehook.com@gmail.com> | 2022-04-07 23:53:12 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2022-04-07 23:06:24 +0000 |
commit | c451a02a6d3e95d279260bd8c1edae676d62997d (patch) | |
tree | 5645f89509102acfd1b2bd3b3963a1344e6e4d63 /src/bytes | |
parent | 8d581f589eb9b9eac05c75f0dfe82a49c3afcd2f (diff) | |
download | go-c451a02a6d3e95d279260bd8c1edae676d62997d.tar.gz go-c451a02a6d3e95d279260bd8c1edae676d62997d.zip |
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/bytes')
-rw-r--r-- | src/bytes/bytes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes/bytes.go b/src/bytes/bytes.go index d9d502927e..979cf1ccf0 100644 --- a/src/bytes/bytes.go +++ b/src/bytes/bytes.go @@ -1142,7 +1142,7 @@ func ReplaceAll(s, old, new []byte) []byte { } // EqualFold reports whether s and t, interpreted as UTF-8 strings, -// are equal under Unicode case-folding, which is a more general +// are equal under simple Unicode case-folding, which is a more general // form of case-insensitivity. func EqualFold(s, t []byte) bool { for len(s) != 0 && len(t) != 0 { |