@@ -199,7 +199,7 @@ pub trait Iterator {
199
199
///
200
200
/// The method does no guarding against overflows, so counting elements of
201
201
/// an iterator with more than [`usize::MAX`] elements either produces the
202
- /// wrong result or panics. If debug assertions are enabled, a panic is
202
+ /// wrong result or panics. If overflow checks are enabled, a panic is
203
203
/// guaranteed.
204
204
///
205
205
/// # Panics
@@ -931,7 +931,7 @@ pub trait Iterator {
931
931
///
932
932
/// The method does no guarding against overflows, so enumerating more than
933
933
/// [`usize::MAX`] elements either produces the wrong result or panics. If
934
- /// debug assertions are enabled, a panic is guaranteed.
934
+ /// overflow checks are enabled, a panic is guaranteed.
935
935
///
936
936
/// # Panics
937
937
///
@@ -2964,7 +2964,7 @@ pub trait Iterator {
2964
2964
///
2965
2965
/// The method does no guarding against overflows, so if there are more
2966
2966
/// than [`usize::MAX`] non-matching elements, it either produces the wrong
2967
- /// result or panics. If debug assertions are enabled, a panic is
2967
+ /// result or panics. If overflow checks are enabled, a panic is
2968
2968
/// guaranteed.
2969
2969
///
2970
2970
/// # Panics
@@ -3516,7 +3516,7 @@ pub trait Iterator {
3516
3516
/// # Panics
3517
3517
///
3518
3518
/// When calling `sum()` and a primitive integer type is being returned, this
3519
- /// method will panic if the computation overflows and debug assertions are
3519
+ /// method will panic if the computation overflows and overflow checks are
3520
3520
/// enabled.
3521
3521
///
3522
3522
/// # Examples
@@ -3550,7 +3550,7 @@ pub trait Iterator {
3550
3550
/// # Panics
3551
3551
///
3552
3552
/// When calling `product()` and a primitive integer type is being returned,
3553
- /// method will panic if the computation overflows and debug assertions are
3553
+ /// method will panic if the computation overflows and overflow checks are
3554
3554
/// enabled.
3555
3555
///
3556
3556
/// # Examples
0 commit comments