Skip to content

Commit 6a3befe

Browse files
Change asserting to converting
1 parent 853b126 commit 6a3befe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/migration-2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ A new `RawArray` type has been added to the `bson` package as a primitive type t
11831183

11841184
### ValueMarshaler
11851185

1186-
The `MarshalBSONValue` method of the `ValueMarshaler` interface is only required to return a byte type value representing the BSON type to avoid importing the `bsontype` package. Comparison can be achieved by type asserting with `bson.Type`. For example:
1186+
The `MarshalBSONValue` method of the `ValueMarshaler` interface is only required to return a byte type value representing the BSON type to avoid importing the `bsontype` package. Comparison can be achieved by type converting with `bson.Type`. For example:
11871187

11881188
```go
11891189
btype, _, _ := m.MarshalBSONValue()

0 commit comments

Comments
 (0)