Fix iterator_step_by_zero description in declaration

Co-Authored-By: Phil Hansch <dev@phansch.net>
This commit is contained in:
mikerite 2019-12-19 06:51:26 +02:00 committed by GitHub
parent ecbfa386d4
commit 710e06dd29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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! {