Skip to content

Commit 46a0e54

Browse files
committed
Put 'if let' back into comment.
1 parent 0373b00 commit 46a0e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/formatting.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ fn is_block(expr: &ast::Expr) -> bool {
245245
}
246246
}
247247

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

0 commit comments

Comments
 (0)