Skip to content

Commit f085d9c

Browse files
author
Isabella Siu
committed
GODRIVER-572 document that Client, Collection, and Database methods will return an ErrNilDocument if nil is passed in for an interface{}
Change-Id: I1dd743891dd2ca49ebee0b76fa15f5ea738813a4
1 parent 0df304e commit f085d9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mongo/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
// if err != nil { return err }
5656
// // do something with result...
5757
//
58+
// All Client, Collection, and Database methods that take parameters of type interface{}
59+
// will return ErrNilDocument if nil is passed in for an interface{}.
60+
//
5861
// Additional examples can be found under the examples directory in the driver's repository and
5962
// on the MongoDB website.
6063
package mongo

0 commit comments

Comments
 (0)