File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ func (rv RawValue) Double() float64 { return convertToCoreValue(rv).Double() }
104
104
// DoubleOK is the same as Double, but returns a boolean instead of panicking.
105
105
func (rv RawValue ) DoubleOK () (float64 , bool ) { return convertToCoreValue (rv ).DoubleOK () }
106
106
107
- // StringValue returns the string balue for this element.
107
+ // StringValue returns the string value for this element.
108
108
// It panics if e's BSON type is not bsontype.String.
109
109
//
110
110
// NOTE: This method is called StringValue to avoid a collision with the String method which
Original file line number Diff line number Diff line change 25
25
//
26
26
// A Collection can be used to query the database or insert documents:
27
27
//
28
- // res, err := collection.InsertOne(context.Background(), bson.M{"hello": "world"}))
28
+ // res, err := collection.InsertOne(context.Background(), bson.M{"hello": "world"})
29
29
// if err != nil { return err }
30
30
// id := res.InsertedID
31
31
//
51
51
// Bar int32
52
52
// }{}
53
53
// filter := bson.D{{"hello", "world"}}
54
- // err := collection.FindOne(context.Background(), filter).Decode(&result))
54
+ // err := collection.FindOne(context.Background(), filter).Decode(&result)
55
55
// if err != nil { return err }
56
56
// // do something with result...
57
57
//
You can’t perform that action at this time.
0 commit comments