1
0
mirror of https://github.com/google/uuid.git synced 2024-11-28 08:49:08 +02:00

edit slice

This commit is contained in:
oj 2018-08-24 16:43:38 +03:00
parent dec09d789f
commit 81e4ea7833

View File

@ -130,7 +130,7 @@ func (uuid UUID) URN() string {
}
func encodeHex(dst []byte, uuid UUID) {
hex.Encode(dst[:], uuid[:4])
hex.Encode(dst, uuid[:4])
dst[8] = '-'
hex.Encode(dst[9:13], uuid[4:6])
dst[13] = '-'