fmt: fix writing ConcatExpr (#6466)
parent
dbce01792c
commit
be2ac0ba89
|
@ -819,7 +819,7 @@ pub fn (mut f Fmt) expr(node ast.Expr) {
|
|||
ast.ConcatExpr {
|
||||
for i, val in node.vals {
|
||||
if i != 0 {
|
||||
f.write(' + ')
|
||||
f.write(', ')
|
||||
}
|
||||
f.expr(val)
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
a, b := if true { 'a', 'b' } else { 'b', 'a' }
|
||||
println(a)
|
||||
println(b)
|
Loading…
Reference in New Issue