]> git.lizzy.rs Git - rust.git/commitdiff
a typo
authoroliver <16816606+o752d@users.noreply.github.com>
Sun, 22 Nov 2020 04:44:47 +0000 (04:44 +0000)
committerGitHub <noreply@github.com>
Sun, 22 Nov 2020 04:44:47 +0000 (04:44 +0000)
typo

clippy_lints/src/assertions_on_constants.rs

index a52f0997d439dbb642946dfe7c40b76895fad0be..62c73dbac48b4a28f622158d525361242913d2bb 100644 (file)
@@ -129,7 +129,7 @@ fn match_assert_with_message<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>)
         if let ExprKind::Block(ref block, _) = arms[0].body.kind;
         if block.stmts.is_empty();
         if let Some(block_expr) = &block.expr;
-        // inner block is optional. unwarp it if it exists, or use the expression as is otherwise.
+        // inner block is optional. unwrap it if it exists, or use the expression as is otherwise.
         if let Some(begin_panic_call) = match block_expr.kind {
             ExprKind::Block(ref inner_block, _) => &inner_block.expr,
             _ => &block.expr,