Fix typo in redundant_pattern_match.rs

alway -> always
This commit is contained in:
Ikko Ashimine 2022-06-06 21:16:31 +09:00 committed by GitHub
parent e70c60d34b
commit 0664bd8b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,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(_)) {