From 6444b5f0bbeee7bec9cf16c7d419eda7b10cc68c Mon Sep 17 00:00:00 2001 From: Andrew Medvedev Date: Fri, 20 Sep 2019 19:52:05 +0300 Subject: [PATCH] Clarify doc for EqualFold --- src/bytes/bytes.go | 2 +- src/strings/strings.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bytes/bytes.go b/src/bytes/bytes.go index eb13212384..7f2f8107d2 100644 --- a/src/bytes/bytes.go +++ b/src/bytes/bytes.go @@ -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. diff --git a/src/strings/strings.go b/src/strings/strings.go index cee315ce9e..ff79a319f5 100644 --- a/src/strings/strings.go +++ b/src/strings/strings.go @@ -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.