1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

make array.hex() use lowercase

This commit is contained in:
Joe Conigliaro
2019-08-03 15:48:58 +10:00
committed by Alexander Medvednikov
parent 15c5f671f0
commit bfddb9a80f
7 changed files with 7 additions and 7 deletions

View File

@ -259,7 +259,7 @@ pub fn (b []byte) hex() string {
mut hex := malloc(b.len*2+1)
mut ptr := &hex[0]
for i := 0; i < b.len ; i++ {
ptr += C.sprintf(ptr, '%02X', b[i])
ptr += C.sprintf(ptr, '%02x', b[i])
}
return string(hex)
}