mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
Fix typo in REVERSE_RANGE_LOOP
’s suggestion
This commit is contained in:
parent
65c4e391ee
commit
5b09501d61
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ fn check_for_loop_reverse_range(cx: &LateContext, arg: &Expr, expr: &Expr) {
|
||||||
"consider using the following if \
|
"consider using the following if \
|
||||||
you are attempting to iterate \
|
you are attempting to iterate \
|
||||||
over this range in reverse",
|
over this range in reverse",
|
||||||
format!("({}..{}).rev()` ", end_snippet, start_snippet));
|
format!("({}..{}).rev()", end_snippet, start_snippet));
|
||||||
});
|
});
|
||||||
} else if eq && limits != ast::RangeLimits::Closed {
|
} else if eq && limits != ast::RangeLimits::Closed {
|
||||||
// if they are equal, it's also problematic - this loop
|
// if they are equal, it's also problematic - this loop
|
||||||
|
|
Loading…
Reference in a new issue