diff --git a/dialect/sql/sql.go b/dialect/sql/sql.go index c12283794..e4c3d0578 100644 --- a/dialect/sql/sql.go +++ b/dialect/sql/sql.go @@ -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) { return func(s *Selector) { s.Where(EqualFold(s.C(name), substr))