Fix typo in comment

This commit is contained in:
Tobie Morgan Hitchcock 2017-12-03 00:44:07 +00:00
parent f623ded1e4
commit 82df9dca86

View file

@ -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...)