doc: update FieldEqualFold comment for clarity on case-folding equality (#4414)

This commit is contained in:
Tantatorn Suksangwarn
2025-07-21 16:33:06 +07:00
committed by GitHub
parent 0940edf5d9
commit 9442826ba6

View File

@@ -142,7 +142,7 @@ func FieldNotIn[T any](name string, vs ...T) func(*Selector) {
} }
} }
// FieldEqualFold returns a raw predicate to check if the field has the given prefix with case-folding. // FieldEqualFold returns a raw predicate to check if the field is equal to the given string under case-folding.
func FieldEqualFold(name string, substr string) func(*Selector) { func FieldEqualFold(name string, substr string) func(*Selector) {
return func(s *Selector) { return func(s *Selector) {
s.Where(EqualFold(s.C(name), substr)) s.Where(EqualFold(s.C(name), substr))