diff --git a/document.go b/document.go index 3c0e6e9..587129e 100644 --- a/document.go +++ b/document.go @@ -172,12 +172,12 @@ func (d *Document) Pull(field string, a ...any) error { if fv.Kind() != reflect.Slice { return ErrNotASlice } -outer: for _, b := range a { + inner: for i := 0; i < fv.Len(); i++ { if reflect.DeepEqual(b, fv.Index(i).Interface()) { fv.Set(pull(fv, i, fv.Index(i).Type())) - break outer + break inner } } }