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

cgen: add space before else in match (#5632)

This commit is contained in:
yuyi 2020-07-03 17:23:23 +08:00 committed by GitHub
parent 31104d73b9
commit 1efbb83060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2025,7 +2025,7 @@ fn (mut g Gen) match_expr(node ast.MatchExpr) {
// TODO too many branches. maybe separate ?: matches
g.write(' : ')
} else {
g.writeln('else {')
g.writeln(' else {')
}
}
} else {
@ -2033,7 +2033,7 @@ fn (mut g Gen) match_expr(node ast.MatchExpr) {
if is_expr {
g.write(' : ')
} else {
g.write('else ')
g.write(' else ')
}
}
if is_expr {