Skip to content

Commit

Permalink
Add diverging case to TrustedLen doc
Browse files Browse the repository at this point in the history
  • Loading branch information
oberien committed Feb 2, 2018
1 parent f56ebc5 commit fa84cc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libcore/iter/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,8 @@ impl<'a, I: FusedIterator + ?Sized> FusedIterator for &'a mut I {}
/// The upper bound must only be [`None`] if the actual iterator length is
/// larger than [`usize::MAX`].
///
/// The iterator must produce exactly the number of elements it reported.
/// The iterator must produce exactly the number of elements it reported
/// or diverge before reaching the end.
///
/// # Safety
///
Expand Down

0 comments on commit fa84cc4

Please sign in to comment.