Skip to content

Commit c1dcfd1

Browse files
authored
Rollup merge of rust-lang#97794 - eltociear:patch-13, r=matthiaskrgr
Fix typo in redundant_pattern_match.rs alway -> always
2 parents 7713f28 + 62d43d2 commit c1dcfd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)