From 82df9dca867992879fb26a0f603303f1fc357dcd Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 3 Dec 2017 00:44:07 +0000 Subject: [PATCH] Fix typo in comment --- util/data/data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...)