mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
doc: update FieldEqualFold comment for clarity on case-folding equality (#4414)
This commit is contained in:
committed by
GitHub
parent
0940edf5d9
commit
9442826ba6
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user