mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Fix typo in redundant_pattern_match.rs
alway -> always
This commit is contained in:
parent
57304823db
commit
62d43d2f82
1 changed files with 1 additions and 1 deletions
|
@ -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(_)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue