mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-09-21 07:01:54 +00:00
Fix iterator_step_by_zero
description in declaration
Co-Authored-By: Phil Hansch <dev@phansch.net>
This commit is contained in:
parent
ecbfa386d4
commit
710e06dd29
1 changed files with 1 additions and 1 deletions
|
@ -753,7 +753,7 @@ declare_clippy_lint! {
|
|||
/// ```
|
||||
pub ITERATOR_STEP_BY_ZERO,
|
||||
correctness,
|
||||
"using `Iterator::step_by(0)`, which produces an infinite iterator"
|
||||
"using `Iterator::step_by(0)`, which will panic at runtime"
|
||||
}
|
||||
|
||||
declare_clippy_lint! {
|
||||
|
|
Loading…
Reference in a new issue