We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d4a3e7 commit 0cbe9ffCopy full SHA for 0cbe9ff
mongo/doc.go
@@ -25,7 +25,7 @@
25
//
26
// A Collection can be used to query the database or insert documents:
27
28
-// res, err := collection.InsertOne(context.Background(), bson.M{"hello": "world"}))
+// res, err := collection.InsertOne(context.Background(), bson.M{"hello": "world"})
29
// if err != nil { return err }
30
// id := res.InsertedID
31
@@ -52,7 +52,7 @@
52
// }{}
53
// result := bson.Raw{}
54
// filter := bson.D{{"hello", "world"}}
55
-// err := collection.FindOne(context.Background(), filter).Decode(&result))
+// err := collection.FindOne(context.Background(), filter).Decode(&result)
56
57
// // do something with result...
58
0 commit comments