about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIkko Ashimine <eltociear@gmail.com>2022-06-06 21:16:31 +0900
committerGitHub <noreply@github.com>2022-06-06 21:16:31 +0900
commit0664bd8b2ab0ea25d6db69de28544820adc34ed9 (patch)
tree31675be82e429a2b15803030493ec907801a8a34
parente70c60d34b9783a2fd3171d88d248c2e0ec8ecdd (diff)
downloadrust-0664bd8b2ab0ea25d6db69de28544820adc34ed9.tar.gz
rust-0664bd8b2ab0ea25d6db69de28544820adc34ed9.zip
Fix typo in redundant_pattern_match.rs
alway -> always
-rw-r--r--src/tools/clippy/clippy_lints/src/matches/redundant_pattern_match.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/matches/redundant_pattern_match.rs b/src/tools/clippy/clippy_lints/src/matches/redundant_pattern_match.rs
index 1a8b9d15f37..b1728b0ae18 100644
--- a/src/tools/clippy/clippy_lints/src/matches/redundant_pattern_match.rs
+++ b/src/tools/clippy/clippy_lints/src/matches/redundant_pattern_match.rs
@@ -68,7 +68,7 @@ fn temporaries_need_ordered_drop<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<
                         }
                     }
                 },
-                // the base type is alway taken by reference.
+                // the base type is always taken by reference.
                 // e.g. In `(vec![0])[0]` the vector is a temporary value.
                 ExprKind::Index(base, index) => {
                     if !matches!(base.kind, ExprKind::Path(_)) {