From accc9159330c61e046d77f77beac62b38bf72c19 Mon Sep 17 00:00:00 2001 From: Andrew Medvedev Date: Sat, 21 Sep 2019 15:46:38 +0300 Subject: [PATCH] Clarify doc for EqualFold --- src/bytes/bytes.go | 3 ++- src/strings/strings.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bytes/bytes.go b/src/bytes/bytes.go index 7f2f8107d2..e872cc2050 100644 --- a/src/bytes/bytes.go +++ b/src/bytes/bytes.go @@ -935,7 +935,8 @@ func ReplaceAll(s, old, new []byte) []byte { } // EqualFold reports whether s and t, interpreted as UTF-8 strings, -// are equal under Unicode case folding (case-insensitively). +// are equal under 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 { // Extract first rune from each. diff --git a/src/strings/strings.go b/src/strings/strings.go index ff79a319f5..869cdcdcef 100644 --- a/src/strings/strings.go +++ b/src/strings/strings.go @@ -969,7 +969,8 @@ func ReplaceAll(s, old, new string) string { } // EqualFold reports whether s and t, interpreted as UTF-8 strings, -// are equal under Unicode case folding (case-insensitively). +// are equal under Unicode case-folding, which is a more general +// form of case-insensitivity. func EqualFold(s, t string) bool { for s != "" && t != "" { // Extract first rune from each string.