We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7713f28 + 62d43d2 commit c1dcfd1Copy full SHA for c1dcfd1
clippy_lints/src/matches/redundant_pattern_match.rs
@@ -70,7 +70,7 @@ fn temporaries_need_ordered_drop<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<
70
}
71
72
},
73
- // the base type is alway taken by reference.
+ // the base type is always taken by reference.
74
// e.g. In `(vec![0])[0]` the vector is a temporary value.
75
ExprKind::Index(base, index) => {
76
if !matches!(base.kind, ExprKind::Path(_)) {
0 commit comments