We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1e0c9 commit 81f77a4Copy full SHA for 81f77a4
clippy_lints/src/ranges.rs
@@ -160,7 +160,7 @@ impl<'tcx> LateLintPass<'tcx> for Ranges {
160
span_lint(cx,
161
RANGE_ZIP_WITH_LEN,
162
expr.span,
163
- &format!("It is more idiomatic to use `{}.iter().enumerate()`",
+ &format!("it is more idiomatic to use `{}.iter().enumerate()`",
164
snippet(cx, iter_args[0].span, "_")));
165
}
166
tests/ui/range.stderr
@@ -1,4 +1,4 @@
1
-error: It is more idiomatic to use `v1.iter().enumerate()`
+error: it is more idiomatic to use `v1.iter().enumerate()`
2
--> $DIR/range.rs:5:14
3
|
4
LL | let _x = v1.iter().zip(0..v1.len());
0 commit comments