diff options
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 3fd73418df5..897f199f25e 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3437,11 +3437,9 @@ impl<'a> Parser<'a> { "unexpected token `||` after pattern", "did you mean to use `|` to specify multiple patterns?"); self.bump(); - } - else if self.check(&token::BinOp(token::Or)) { + } else if self.check(&token::BinOp(token::Or)) { self.bump(); - } - else { + } else { return Ok(pats); } }; |
