Rollup merge of #139447 - izarma:issue-108131-fix, r=scottmcm
doc changes: debug assertions -> overflow checks This PR is for the following issue: https://github.com/rust-lang/rust/issues/108131 has some changes in docs
This commit is contained in:
commit
a7d7a6d0eb
2 changed files with 6 additions and 6 deletions
|
@ -36,7 +36,7 @@ where
|
|||
///
|
||||
/// The method does no guarding against overflows, so enumerating more than
|
||||
/// `usize::MAX` elements either produces the wrong result or panics. If
|
||||
/// debug assertions are enabled, a panic is guaranteed.
|
||||
/// overflow checks are enabled, a panic is guaranteed.
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
|
|
|
@ -199,7 +199,7 @@ pub trait Iterator {
|
|||
///
|
||||
/// The method does no guarding against overflows, so counting elements of
|
||||
/// an iterator with more than [`usize::MAX`] elements either produces the
|
||||
/// wrong result or panics. If debug assertions are enabled, a panic is
|
||||
/// wrong result or panics. If overflow checks are enabled, a panic is
|
||||
/// guaranteed.
|
||||
///
|
||||
/// # Panics
|
||||
|
@ -931,7 +931,7 @@ pub trait Iterator {
|
|||
///
|
||||
/// The method does no guarding against overflows, so enumerating more than
|
||||
/// [`usize::MAX`] elements either produces the wrong result or panics. If
|
||||
/// debug assertions are enabled, a panic is guaranteed.
|
||||
/// overflow checks are enabled, a panic is guaranteed.
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
|
@ -2964,7 +2964,7 @@ pub trait Iterator {
|
|||
///
|
||||
/// The method does no guarding against overflows, so if there are more
|
||||
/// than [`usize::MAX`] non-matching elements, it either produces the wrong
|
||||
/// result or panics. If debug assertions are enabled, a panic is
|
||||
/// result or panics. If overflow checks are enabled, a panic is
|
||||
/// guaranteed.
|
||||
///
|
||||
/// # Panics
|
||||
|
@ -3516,7 +3516,7 @@ pub trait Iterator {
|
|||
/// # Panics
|
||||
///
|
||||
/// When calling `sum()` and a primitive integer type is being returned, this
|
||||
/// method will panic if the computation overflows and debug assertions are
|
||||
/// method will panic if the computation overflows and overflow checks are
|
||||
/// enabled.
|
||||
///
|
||||
/// # Examples
|
||||
|
@ -3550,7 +3550,7 @@ pub trait Iterator {
|
|||
/// # Panics
|
||||
///
|
||||
/// When calling `product()` and a primitive integer type is being returned,
|
||||
/// method will panic if the computation overflows and debug assertions are
|
||||
/// method will panic if the computation overflows and overflow checks are
|
||||
/// enabled.
|
||||
///
|
||||
/// # Examples
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue