We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd24d6f commit c016854Copy full SHA for c016854
bson/primitive/objectid.go
@@ -126,7 +126,7 @@ func (id *ObjectID) UnmarshalJSON(b []byte) error {
126
}
127
128
if len(str) != 24 {
129
- return fmt.Errorf("cannot unmarshal into an ObjectID, the length must be 12 but it is %d", len(str))
+ return fmt.Errorf("cannot unmarshal into an ObjectID, the length must be 24 but it is %d", len(str))
130
131
132
_, err = hex.Decode(id[:], []byte(str))
0 commit comments