Skip to content

Commit

Permalink
Put 'if let' back into comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Jun 24, 2019
1 parent 0373b00 commit 46a0e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/formatting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_)),
Expand Down

0 comments on commit 46a0e54

Please sign in to comment.