File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -356,10 +356,10 @@ declare_clippy_lint! {
356
356
357
357
declare_clippy_lint ! {
358
358
/// ### What it does
359
- /// Checks for loops which have a range bound that is a mutable variable
359
+ /// Checks for loops with a range bound that is a mutable variable.
360
360
///
361
361
/// ### Why is this bad?
362
- /// One might think that modifying the mutable variable changes the loop bounds
362
+ /// One might think that modifying the mutable variable changes the loop bounds. It doesn't.
363
363
///
364
364
/// ### Known problems
365
365
/// False positive when mutation is followed by a `break`, but the `break` is not immediately
@@ -381,7 +381,7 @@ declare_clippy_lint! {
381
381
/// let mut foo = 42;
382
382
/// for i in 0..foo {
383
383
/// foo -= 1;
384
- /// println!("{}", i ); // prints numbers from 0 to 42 , not 0 to 21
384
+ /// println!("{i}" ); // prints numbers from 0 to 41 , not 0 to 21
385
385
/// }
386
386
/// ```
387
387
#[ clippy:: version = "pre 1.29.0" ]
You can’t perform that action at this time.
0 commit comments