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

v2: minor fixes

This commit is contained in:
Alexander Medvednikov
2020-02-07 21:29:28 +01:00
parent 99217da6ca
commit f782388148
4 changed files with 33 additions and 10 deletions

View File

@ -368,10 +368,10 @@ pub fn (b []byte) hex() string {
mut ptr := &hex[0]
for i := 0; i < b.len; i++ {
// QTODO
ptr += C.sprintf(ptr as charptr, '%02x', b[i])
ptr += C.sprintf(ptr, '%02x', b[i])
}
return hex as string
//return string(hex)
//return hex as string
return string(hex)
}
// copy copies the `src` byte array elements to the `dst` byte array.