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

all: byte => u8

This commit is contained in:
Alexander Medvednikov
2022-04-15 14:58:56 +03:00
parent b49d873217
commit d4a0d6f73c
221 changed files with 1365 additions and 1365 deletions

View File

@ -821,17 +821,17 @@ pub fn (a []string) str() string {
}
sb_len += 2 // 1x[ + 1x]
mut sb := strings.new_builder(sb_len)
sb.write_byte(`[`)
sb.write_u8(`[`)
for i in 0 .. a.len {
val := a[i]
sb.write_byte(`'`)
sb.write_u8(`'`)
sb.write_string(val)
sb.write_byte(`'`)
sb.write_u8(`'`)
if i < a.len - 1 {
sb.write_string(', ')
}
}
sb.write_byte(`]`)
sb.write_u8(`]`)
res := sb.str()
unsafe { sb.free() }
return res