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

array.v: use as cast

This commit is contained in:
Alexander Medvednikov 2020-02-07 09:38:28 +01:00
parent b23854b2ab
commit 18a3961992

View File

@ -370,8 +370,8 @@ pub fn (b []byte) hex() string {
// QTODO // QTODO
ptr += C.sprintf(ptr as charptr, '%02x', b[i]) ptr += C.sprintf(ptr as charptr, '%02x', b[i])
} }
//return hex as string return hex as string
return string(hex) //return string(hex)
} }
// copy copies the `src` byte array elements to the `dst` byte array. // copy copies the `src` byte array elements to the `dst` byte array.