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:
parent
b23854b2ab
commit
18a3961992
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user