]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in `REVERSE_RANGE_LOOP`’s suggestion
authormcarton <cartonmartin+git@gmail.com>
Tue, 7 Jun 2016 15:49:13 +0000 (17:49 +0200)
committermcarton <cartonmartin+git@gmail.com>
Tue, 7 Jun 2016 15:49:13 +0000 (17:49 +0200)
clippy_lints/src/loops.rs

index 3d3c9ab47a4155d5eae7d2444e9633fc4c8e5201..664ff21994eb78c1772a0df0d1b00c89194ab057 100644 (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