Fix typo in REVERSE_RANGE_LOOP’s suggestion

This commit is contained in:
mcarton 2016-06-07 17:49:13 +02:00
parent 65c4e391ee
commit 5b09501d61
No known key found for this signature in database
GPG key ID: 5E427C794CBA45E8

View file

@ -450,7 +450,7 @@ fn check_for_loop_reverse_range(cx: &LateContext, arg: &Expr, expr: &Expr) {
"consider using the following if \
you are attempting to iterate \
over this range in reverse",
format!("({}..{}).rev()` ", end_snippet, start_snippet));
format!("({}..{}).rev()", end_snippet, start_snippet));
});
} else if eq && limits != ast::RangeLimits::Closed {
// if they are equal, it's also problematic - this loop