Skip to content

Commit c22227c

Browse files
committed
docs: fix IDToBsonBinary comment to say UUID string, not hex UUID
1 parent 26b2478 commit c22227c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mdl/bsonutil/bsonutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"go.mongodb.org/mongo-driver/bson/primitive"
1111
)
1212

13-
// IDToBsonBinary converts a hex UUID string to a BSON binary value.
13+
// IDToBsonBinary converts a UUID string to a BSON binary value.
1414
// Panics if id is not a valid UUID — an invalid ID at this layer is always a programming error.
1515
func IDToBsonBinary(id string) primitive.Binary {
1616
blob := types.UUIDToBlob(id)

0 commit comments

Comments
 (0)