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

all: replace []byte with []u8

This commit is contained in:
Alexander Medvednikov
2022-04-15 15:35:35 +03:00
parent 0527ac633e
commit fb192d949b
164 changed files with 533 additions and 533 deletions

View File

@ -272,7 +272,7 @@ fn escape(s string, mode EncodingMode) string {
return s
}
required := s.len + 2 * hex_count
mut t := []byte{len: required}
mut t := []u8{len: required}
if hex_count == 0 {
copy(mut t, s.bytes())
for i in 0 .. s.len {