Skip to content

Commit 0cbe9ff

Browse files
authored
Fix sample code typo
1 parent 0d4a3e7 commit 0cbe9ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mongo/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//
2626
// A Collection can be used to query the database or insert documents:
2727
//
28-
// res, err := collection.InsertOne(context.Background(), bson.M{"hello": "world"}))
28+
// res, err := collection.InsertOne(context.Background(), bson.M{"hello": "world"})
2929
// if err != nil { return err }
3030
// id := res.InsertedID
3131
//
@@ -52,7 +52,7 @@
5252
// }{}
5353
// result := bson.Raw{}
5454
// filter := bson.D{{"hello", "world"}}
55-
// err := collection.FindOne(context.Background(), filter).Decode(&result))
55+
// err := collection.FindOne(context.Background(), filter).Decode(&result)
5656
// if err != nil { return err }
5757
// // do something with result...
5858
//

0 commit comments

Comments
 (0)