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()
sb.write(val)
//println('"$val"')
val.free()
if a[i] != 0 {
val.free()
}
if i < a.len - 1 {
sb.write(', ')
}