Skip to content

Commit

Permalink
Fix encoder_example_test.go build. (#1518)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdale authored Jan 18, 2024
1 parent 8acba08 commit 7fa4f6d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bson/encoder_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,7 @@ func ExampleEncoder_IntMinSize() {
panic(err)
}

enc, err := bson.NewEncoder(vw)
if err != nil {
panic(err)
}

enc := bson.NewEncoder(vw)
enc.IntMinSize()

err = enc.Encode(foo{2})
Expand Down

0 comments on commit 7fa4f6d

Please sign in to comment.