Skip to content

Commit

Permalink
fix: EnumerateIterator doc
Browse files Browse the repository at this point in the history
  • Loading branch information
julio4 committed Jan 15, 2025
1 parent f72b7db commit 8502a5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions corelib/src/iter/traits/iterator.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,13 @@ pub trait Iterator<T> {
/// # Overflow Behavior
///
/// The method does no guarding against overflows, so enumerating more than
/// [`Bounded::<usize>::MAX`] elements either produces the wrong result or panics.
/// `Bounded::<usize>::MAX` elements will always panic.
///
/// [`Bounded`]: core::num::traits::Bounded
///
/// # Panics
///
/// The returned iterator might panic if the to-be-returned index would
/// overflow a [`usize`].
/// Will panic if the to-be-returned index overflows a `usize`.
///
/// # Examples
///
Expand Down

0 comments on commit 8502a5b

Please sign in to comment.