Clarify doc for EqualFold

This commit is contained in:
Andrew Medvedev 2019-09-20 19:52:05 +03:00
parent dfbc9c83a9
commit 6444b5f0bb
2 changed files with 2 additions and 2 deletions

View File

@ -935,7 +935,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.
// are equal under Unicode case folding (case-insensitively).
func EqualFold(s, t []byte) bool {
for len(s) != 0 && len(t) != 0 {
// Extract first rune from each.

View File

@ -969,7 +969,7 @@ func ReplaceAll(s, old, new string) string {
}
// EqualFold reports whether s and t, interpreted as UTF-8 strings,
// are equal under Unicode case-folding.
// are equal under Unicode case folding (case-insensitively).
func EqualFold(s, t string) bool {
for s != "" && t != "" {
// Extract first rune from each string.