diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs index 1277acfb8bbf..27b7bb2fa2ec 100644 --- a/src/libcore/iter/iterator.rs +++ b/src/libcore/iter/iterator.rs @@ -266,8 +266,7 @@ pub trait Iterator { /// /// # Panics /// - /// If the given step is `0`, the method will panic if debug assertions are - /// enabled. + /// The method will panic if the given step is `0`. /// /// # Examples ///