Skip to content

Commit ab32bc9

Browse files
authored
Docs updates. (#1608)
1 parent 9648fe1 commit ab32bc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/common-issues.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ These are fixes or information for common issues encountered by Go Driver users.
44

55
## `WriteXXX` can only write while positioned on a Element or Value but is positioned on a TopLevel
66

7-
The [`bson.Marshal`](https://pkg.go.dev/go.mongodb.org/mongo-driver/bson#Marshal) function requires a parameter that can be decoded into a BSON Document, i.e. a [`primitive.D`](https://github.com/mongodb/mongo-go-driver/blob/master/bson/bson.go#L31). Therefore the error message
7+
The [`bson.Marshal`](https://pkg.go.dev/go.mongodb.org/mongo-driver/bson#Marshal) function requires a parameter that can be decoded into a BSON Document, i.e. a [`bson.D`](https://pkg.go.dev/go.mongodb.org/mongo-driver/bson#D). Therefore the error message
88

99
> `WriteXXX` can only write while positioned on a Element or Value but is positioned on a TopLevel
1010
@@ -34,7 +34,7 @@ sort := bson.D{}
3434

3535
## Convert BSON Document to JSON
3636

37-
There are a variety of marshalers that can be used to encode a BSON document as JSON, including [MarshalExtJSON](https://pkg.go.dev/github.com/mongodb/mongo-go-driver/bson#MarshalExtJSON):
37+
There are a variety of marshalers that can be used to encode a BSON document as JSON, including [MarshalExtJSON](https://pkg.go.dev/go.mongodb.org/mongo-driver/bson#MarshalExtJSON):
3838

3939
```go
4040
doc := bson.D{{"x", 1}}

0 commit comments

Comments
 (0)