diff --git a/util/data/data.go b/util/data/data.go index 607e9db1..34b060ad 100644 --- a/util/data/data.go +++ b/util/data/data.go @@ -330,7 +330,7 @@ func (d *Doc) New(value interface{}, path ...string) (*Doc, error) { return d.Get(path...), nil } -// Iff sets the value at the specified path if it is not nil, or deleted it. +// Iff sets the value at the specified path if it is not nil, or deletes it. func (d *Doc) Iff(value interface{}, path ...string) (*Doc, error) { if value != nil { return d.Set(value, path...)