Skip to content

Commit 710e06d

Browse files
mikeritephansch
mikerite
andauthored
Fix iterator_step_by_zero description in declaration
Co-Authored-By: Phil Hansch <[email protected]>
1 parent ecbfa38 commit 710e06d

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ declare_clippy_lint! {
753753
/// ```
754754
pub ITERATOR_STEP_BY_ZERO,
755755
correctness,
756-
"using `Iterator::step_by(0)`, which produces an infinite iterator"
756+
"using `Iterator::step_by(0)`, which will panic at runtime"
757757
}
758758

759759
declare_clippy_lint! {

0 commit comments

Comments
 (0)