Skip to content

Commit e8f52c4

Browse files
committed
Merge branch 'pr/111'
Change-Id: I873f10dff2af91cd6209b39cc6e873fb68aca16a
2 parents 29905d4 + 0cbe9ff commit e8f52c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bson/raw_value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (rv RawValue) Double() float64 { return convertToCoreValue(rv).Double() }
104104
// DoubleOK is the same as Double, but returns a boolean instead of panicking.
105105
func (rv RawValue) DoubleOK() (float64, bool) { return convertToCoreValue(rv).DoubleOK() }
106106

107-
// StringValue returns the string balue for this element.
107+
// StringValue returns the string value for this element.
108108
// It panics if e's BSON type is not bsontype.String.
109109
//
110110
// NOTE: This method is called StringValue to avoid a collision with the String method which

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
//
@@ -51,7 +51,7 @@
5151
// Bar int32
5252
// }{}
5353
// filter := bson.D{{"hello", "world"}}
54-
// err := collection.FindOne(context.Background(), filter).Decode(&result))
54+
// err := collection.FindOne(context.Background(), filter).Decode(&result)
5555
// if err != nil { return err }
5656
// // do something with result...
5757
//

0 commit comments

Comments
 (0)