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

vfmt: fix for x; y; i++ \n {}

This commit is contained in:
Delyan Angelov 2020-07-02 15:29:52 +03:00
parent 37d51e8d74
commit 05e11f6336

View File

@ -345,6 +345,7 @@ pub fn (mut f Fmt) stmt(node ast.Stmt) {
f.expr(it.cond)
f.write('; ')
f.stmt(it.inc)
f.remove_new_line()
f.writeln(' {')
f.stmts(it.stmts)
f.writeln('}')