Skip to content

Commit 2af8064

Browse files
authored
Removed pointer
1 parent 228ac2d commit 2af8064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/objectid/objectid.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func FromHex(s string) (ObjectID, error) {
7878
}
7979

8080
// MarshalJSON returns the ObjectID as a string
81-
func (id *ObjectID) MarshalJSON() ([]byte, error) {
81+
func (id ObjectID) MarshalJSON() ([]byte, error) {
8282
return json.Marshal(id.Hex())
8383
}
8484

0 commit comments

Comments
 (0)