Fix suggestions for REVERSE_RANGE_LOOP
This commit is contained in:
parent
3ae39145fc
commit
e9360f7675
2 changed files with 10 additions and 2 deletions
|
|
@ -169,7 +169,7 @@ fn main() {
|
|||
for i in 10...0 {
|
||||
//~^ERROR this range is empty so this for loop will never run
|
||||
//~|HELP consider
|
||||
//~|SUGGESTION (0..10).rev()
|
||||
//~|SUGGESTION (0...10).rev()
|
||||
println!("{}", i);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue