Skip to content

Commit 9e1dc70

Browse files
committed
rewrite to put blk as 2nd arg
1 parent e34abba commit 9e1dc70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool {
16081608
expr_requires_semi_to_be_stmt(option::get(els)) }
16091609
}
16101610
ast::expr_alt(_, arms) {
1611-
vec::any({|arm| !option::is_none(arm.body.node.expr)}, arms)
1611+
vec::any(arms, {|arm| !option::is_none(arm.body.node.expr)})
16121612
}
16131613
ast::expr_block(blk) | ast::expr_while(_, blk) |
16141614
ast::expr_for(_, _, blk) | ast::expr_do_while(blk, _) {

0 commit comments

Comments
 (0)