Skip to content

Commit 0664bd8

Browse files
author
Ikko Ashimine
authored
Fix typo in redundant_pattern_match.rs
alway -> always
1 parent e70c60d commit 0664bd8

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
@@ -68,7 +68,7 @@ fn temporaries_need_ordered_drop<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<
6868
}
6969
}
7070
},
71-
// the base type is alway taken by reference.
71+
// the base type is always taken by reference.
7272
// e.g. In `(vec![0])[0]` the vector is a temporary value.
7373
ExprKind::Index(base, index) => {
7474
if !matches!(base.kind, ExprKind::Path(_)) {

0 commit comments

Comments
 (0)