Skip to content

Commit

Permalink
Rollup merge of rust-lang#97794 - eltociear:patch-13, r=matthiaskrgr
Browse files Browse the repository at this point in the history
Fix typo in redundant_pattern_match.rs

alway -> always
  • Loading branch information
matthiaskrgr authored Jun 6, 2022
2 parents 7713f28 + 62d43d2 commit c1dcfd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/matches/redundant_pattern_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_)) {
Expand Down

0 comments on commit c1dcfd1

Please sign in to comment.