Skip to content

Commit 29cc868

Browse files
committed
Merge pull request #263 from jrwren/patch-1
Fix typo in documentation for One.
2 parents b6e2fa3 + 860dc8c commit 29cc868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3003,7 +3003,7 @@ Error:
30033003
// unmarshalled into by gobson. This function blocks until either a result
30043004
// is available or an error happens. For example:
30053005
//
3006-
// err := collection.Find(bson.M{"a", 1}).One(&result)
3006+
// err := collection.Find(bson.M{"a": 1}).One(&result)
30073007
//
30083008
// In case the resulting document includes a field named $err or errmsg, which
30093009
// are standard ways for MongoDB to return query errors, the returned err will

0 commit comments

Comments
 (0)