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 | fece76d7bc0674626aab7f73df76370f2af467f5 (patch) | |
| tree | f4408afc226cef8f0bee4040941ee14474177677 | |
| parent | 6be8b9cd775282322767ecafb790405602c94261 (diff) | |
| parent | 0664bd8b2ab0ea25d6db69de28544820adc34ed9 (diff) | |
| download | rust-fece76d7bc0674626aab7f73df76370f2af467f5.tar.gz rust-fece76d7bc0674626aab7f73df76370f2af467f5.zip | |
Rollup merge of #97794 - eltociear:patch-13, r=matthiaskrgr
Fix typo in redundant_pattern_match.rs alway -> always
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/matches/redundant_pattern_match.rs | 2 |
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 095cd43ea13..0ea3f3b673b 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 @@ -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(_)) { |
