This commit is contained in:
Ayke van Laethem 2020-05-27 16:50:21 +02:00
parent 8162ae22f7
commit 5ed4112930
No known key found for this signature in database
GPG key ID: E97FF5335DFDFDED

View file

@ -93,17 +93,17 @@ func (uuid UUID) String() string {
// First nibble. // First nibble.
nibble := c >> 4 nibble := c >> 4
if nibble <= 9 { if nibble <= 9 {
s += string(nibble+'0') s += string(nibble + '0')
} else { } else {
s += string(nibble+'A'-10) s += string(nibble + 'A' - 10)
} }
// Second nibble. // Second nibble.
nibble = c & 0x0f nibble = c & 0x0f
if nibble <= 9 { if nibble <= 9 {
s += string(nibble+'0') s += string(nibble + '0')
} else { } else {
s += string(nibble+'A'-10) s += string(nibble + 'A' - 10)
} }
} }