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 d305fc0 commit 2bcd97aCopy full SHA for 2bcd97a
mongo/cursor.go
@@ -22,7 +22,7 @@ import (
22
// defer cur.Close(ctx)
23
//
24
// for cur.Next(ctx) {
25
-// elem := bson.NewDocument()
+// elem := &bson.D{}
26
// if err := cur.Decode(elem); err != nil {
27
// log.Fatal(err)
28
// }
mongo/doc.go
@@ -50,7 +50,6 @@
50
// Foo string
51
// Bar int32
52
// }{}
53
-// result := bson.Raw{}
54
// filter := bson.D{{"hello", "world"}}
55
// err := collection.FindOne(context.Background(), filter).Decode(&result))
56
// if err != nil { return err }
0 commit comments