We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75474ff commit 6caec2cCopy full SHA for 6caec2c
src/libcore/iter/traits.rs
@@ -970,9 +970,11 @@ impl<'a, I: FusedIterator + ?Sized> FusedIterator for &'a mut I {}
970
/// The iterator reports a size hint where it is either exact
971
/// (lower bound is equal to upper bound), or the upper bound is [`None`].
972
/// The upper bound must only be [`None`] if the actual iterator length is
973
-/// larger than [`usize::MAX`].
+/// larger than [`usize::MAX`]. In that case, the lower bound must be
974
+/// [`usize::MAX`], resulting in a [`.size_hint`] of `(usize::MAX, None)`.
975
///
-/// The iterator must produce exactly the number of elements it reported.
976
+/// The iterator must produce exactly the number of elements it reported
977
+/// or diverge before reaching the end.
978
979
/// # Safety
980
0 commit comments