cgen: add space before `else` in match (#5632)
parent
31104d73b9
commit
1efbb83060
|
@ -2025,7 +2025,7 @@ fn (mut g Gen) match_expr(node ast.MatchExpr) {
|
||||||
// TODO too many branches. maybe separate ?: matches
|
// TODO too many branches. maybe separate ?: matches
|
||||||
g.write(' : ')
|
g.write(' : ')
|
||||||
} else {
|
} else {
|
||||||
g.writeln('else {')
|
g.writeln(' else {')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -2033,7 +2033,7 @@ fn (mut g Gen) match_expr(node ast.MatchExpr) {
|
||||||
if is_expr {
|
if is_expr {
|
||||||
g.write(' : ')
|
g.write(' : ')
|
||||||
} else {
|
} else {
|
||||||
g.write('else ')
|
g.write(' else ')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if is_expr {
|
if is_expr {
|
||||||
|
|
Loading…
Reference in New Issue