Skip to content

Commit fa84cc4

Browse files
committed
Add diverging case to TrustedLen doc
1 parent f56ebc5 commit fa84cc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/iter/traits.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,8 @@ impl<'a, I: FusedIterator + ?Sized> FusedIterator for &'a mut I {}
972972
/// The upper bound must only be [`None`] if the actual iterator length is
973973
/// larger than [`usize::MAX`].
974974
///
975-
/// The iterator must produce exactly the number of elements it reported.
975+
/// The iterator must produce exactly the number of elements it reported
976+
/// or diverge before reaching the end.
976977
///
977978
/// # Safety
978979
///

0 commit comments

Comments
 (0)