Skip to content

Commit 71a55a4

Browse files
committed
doc changes
1 parent a5c6692 commit 71a55a4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: core/src/iter/adapters/enumerate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ where
3636
///
3737
/// The method does no guarding against overflows, so enumerating more than
3838
/// `usize::MAX` elements either produces the wrong result or panics. If
39-
/// debug assertions are enabled, a panic is guaranteed.
39+
/// overflow checks are enabled, a panic is guaranteed.
4040
///
4141
/// # Panics
4242
///

Diff for: core/src/iter/traits/iterator.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ pub trait Iterator {
199199
///
200200
/// The method does no guarding against overflows, so counting elements of
201201
/// 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
203203
/// guaranteed.
204204
///
205205
/// # Panics
@@ -931,7 +931,7 @@ pub trait Iterator {
931931
///
932932
/// The method does no guarding against overflows, so enumerating more than
933933
/// [`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.
935935
///
936936
/// # Panics
937937
///
@@ -2964,7 +2964,7 @@ pub trait Iterator {
29642964
///
29652965
/// The method does no guarding against overflows, so if there are more
29662966
/// 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
29682968
/// guaranteed.
29692969
///
29702970
/// # Panics
@@ -3516,7 +3516,7 @@ pub trait Iterator {
35163516
/// # Panics
35173517
///
35183518
/// 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
35203520
/// enabled.
35213521
///
35223522
/// # Examples
@@ -3550,7 +3550,7 @@ pub trait Iterator {
35503550
/// # Panics
35513551
///
35523552
/// 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
35543554
/// enabled.
35553555
///
35563556
/// # Examples

0 commit comments

Comments
 (0)