diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-06-07 01:13:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-07 01:13:48 +0200 |
| commit | c1dcfd175e77e3b906b5330c089be33c5ed15345 (patch) | |
| tree | cd841e0c52089b31c3037946f065a3395be0fb01 | |
| parent | 7713f28f543e4e36cbdc0ec560e100fe47fbc75e (diff) | |
| parent | 62d43d2f821b7072e8072d321439193fa0c8f9c4 (diff) | |
| download | rust-c1dcfd175e77e3b906b5330c089be33c5ed15345.tar.gz rust-c1dcfd175e77e3b906b5330c089be33c5ed15345.zip | |
Rollup merge of #97794 - eltociear:patch-13, r=matthiaskrgr
Fix typo in redundant_pattern_match.rs alway -> always
| -rw-r--r-- | clippy_lints/src/matches/redundant_pattern_match.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/matches/redundant_pattern_match.rs b/clippy_lints/src/matches/redundant_pattern_match.rs index 095cd43ea13..0ea3f3b673b 100644 --- a/clippy_lints/src/matches/redundant_pattern_match.rs +++ b/clippy_lints/src/matches/redundant_pattern_match.rs @@ -70,7 +70,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(_)) { |
