mirror of
https://github.com/golang/go
synced 2024-11-05 11:46:12 -07:00
Clarify doc for EqualFold
This commit is contained in:
parent
6444b5f0bb
commit
accc915933
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user