blob: 73ecc99acfcbcb53b8328d4f8f4ce551313dc9d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
### What it does
Checks for calling `.step_by(0)` on iterators which panics.
### Why is this bad?
This very much looks like an oversight. Use `panic!()` instead if you
actually intend to panic.
### Example
```
for x in (0..100).step_by(0) {
//..
}
```
|