mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: use 0 instead of \0
rune when setting C style terminators; use C.memcpy in []string{}.join("")
This commit is contained in:
@ -533,7 +533,7 @@ pub fn (b []byte) hex() string {
|
||||
}
|
||||
}
|
||||
unsafe {
|
||||
hex[dst_i] = `\0`
|
||||
hex[dst_i] = 0
|
||||
return tos(hex, dst_i)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user