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

array: handle "0" strings

This commit is contained in:
Alexander Medvednikov 2020-04-02 01:47:32 +02:00
parent 88d15c6611
commit 507f4ce87a

View File

@ -381,7 +381,9 @@ pub fn (a []int) str() string {
val := a[i].str() val := a[i].str()
sb.write(val) sb.write(val)
//println('"$val"') //println('"$val"')
if a[i] != 0 {
val.free() val.free()
}
if i < a.len - 1 { if i < a.len - 1 {
sb.write(', ') sb.write(', ')
} }