1
0
mirror of https://github.com/google/uuid.git synced 2025-02-16 12:23:51 +02:00

Merge pull request #35 from OrlovEvgeny/master

edit slice
This commit is contained in:
pborman 2018-08-28 13:15:55 -05:00 committed by GitHub
commit e704694aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,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] = '-'