This commit is contained in:
guoguangwu 2025-06-20 15:30:44 -04:00 committed by GitHub
commit 739fa4a8a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ func ExampleEqualFunc() {
1000: []byte("Thousand"),
}
eq := maps.EqualFunc(m1, m2, func(v1 string, v2 []byte) bool {
return strings.ToLower(v1) == strings.ToLower(string(v2))
return strings.EqualFold(v1, string(v2))
})
fmt.Println(eq)
// Output: