Put 'if let' back into comment.

This commit is contained in:
Mazdak Farrokhzad 2019-06-24 07:20:52 +02:00
parent 0373b007da
commit 46a0e54361

View File

@ -245,7 +245,7 @@ fn is_block(expr: &ast::Expr) -> bool {
}
}
/// Match `if` expressions and return the `then` and `else` block.
/// Match `if` or `if let` expressions and return the `then` and `else` block.
fn unsugar_if(expr: &ast::Expr) -> Option<(&P<ast::Block>, &Option<P<ast::Expr>>)> {
match expr.node {
ast::ExprKind::If(_, ref then, ref else_) => Some((then, else_)),