Skip to content

Commit 831aa96

Browse files
committed
Auto merge of rust-lang#6363 - o752d:patch-2, r=flip1995
a typo typo changelog: none
2 parents 4284ec3 + 9b910e1 commit 831aa96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/assertions_on_constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ fn match_assert_with_message<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>)
129129
if let ExprKind::Block(ref block, _) = arms[0].body.kind;
130130
if block.stmts.is_empty();
131131
if let Some(block_expr) = &block.expr;
132-
// inner block is optional. unwarp it if it exists, or use the expression as is otherwise.
132+
// inner block is optional. unwrap it if it exists, or use the expression as is otherwise.
133133
if let Some(begin_panic_call) = match block_expr.kind {
134134
ExprKind::Block(ref inner_block, _) => &inner_block.expr,
135135
_ => &block.expr,

0 commit comments

Comments
 (0)