Skip to content

Commit 7b71e6f

Browse files
author
Isabella Siu
committed
GODRIVER-653 fix docstring for Raw.Lookup
Change-Id: Iae6831461e873582b054c0cfbeaa09c9bcecd538
1 parent 43e7c40 commit 7b71e6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bson/raw.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ func (r Raw) Validate() (err error) { return bsoncore.Document(r).Validate() }
3535

3636
// Lookup search the document, potentially recursively, for the given key. If
3737
// there are multiple keys provided, this method will recurse down, as long as
38-
// the top and intermediate nodes are either documents or arrays. If any key
39-
// except for the last is not a document or an array, an error will be returned.
38+
// the top and intermediate nodes are either documents or arrays.If an error
39+
// occurs or if the value doesn't exist, an empty RawValue is returned.
4040
func (r Raw) Lookup(key ...string) RawValue {
4141
return convertFromCoreValue(bsoncore.Document(r).Lookup(key...))
4242
}

0 commit comments

Comments
 (0)