Skip to content

Commit fece76d

Browse files
authored
Rollup merge of #97794 - eltociear:patch-13, r=matthiaskrgr
Fix typo in redundant_pattern_match.rs alway -> always
2 parents 6be8b9c + 0664bd8 commit fece76d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/clippy/clippy_lints/src/matches/redundant_pattern_match.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn temporaries_need_ordered_drop<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<
7070
}
7171
}
7272
},
73-
// the base type is alway taken by reference.
73+
// the base type is always taken by reference.
7474
// e.g. In `(vec![0])[0]` the vector is a temporary value.
7575
ExprKind::Index(base, index) => {
7676
if !matches!(base.kind, ExprKind::Path(_)) {

0 commit comments

Comments
 (0)