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

pull/5638/head
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
1 changed files with 2 additions and 2 deletions

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 {