let_chains: Fix outdated doc-comment re. 'parse_if_expr'.

This commit is contained in:
Mazdak Farrokhzad 2019-05-18 00:34:55 +02:00
parent 8b72e4c815
commit 3b7f0cb7e0

View File

@ -3154,7 +3154,7 @@ impl<'a> Parser<'a> {
}
}
/// Parses an `if` or `if let` expression (`if` token already eaten).
/// Parses an `if` expression (`if` token already eaten).
fn parse_if_expr(&mut self, attrs: ThinVec<Attribute>) -> PResult<'a, P<Expr>> {
let lo = self.prev_span;
let cond = self.parse_expr_res(Restrictions::NO_STRUCT_LITERAL, None)?;