Skip to content

Commit

Permalink
syntax: Remove 'ret'
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Aug 2, 2012
1 parent b355936 commit 2d8c7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ class parser {
let e = self.parse_expr();
ex = expr_assert(e);
hi = e.span.hi;
} else if self.eat_keyword(~"ret") || self.eat_keyword(~"return") {
} else if self.eat_keyword(~"return") {
if can_begin_expr(self.token) {
let e = self.parse_expr();
hi = e.span.hi;
Expand Down

0 comments on commit 2d8c7fd

Please sign in to comment.