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 ef90e5d commit 5bedd1dCopy full SHA for 5bedd1d
uuid.go
@@ -115,12 +115,12 @@ func ParseUUID(s string) (uuid UUID, err error) {
115
uuid[3-uuidIndex/8] |= uint32(nibble) << (4 * (7 - uuidIndex%8))
116
uuidIndex++
117
}
118
- if uuidIndex != 31 {
+ if uuidIndex != 32 {
119
// The UUID doesn't have exactly 32 nibbles. Perhaps a 16-bit or 32-bit
120
// UUID?
121
err = errInvalidUUID
122
123
- return uuid, nil
+ return
124
125
126
// String returns a human-readable version of this UUID, such as
0 commit comments