File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -970,9 +970,11 @@ impl<'a, I: FusedIterator + ?Sized> FusedIterator for &'a mut I {}
970
970
/// The iterator reports a size hint where it is either exact
971
971
/// (lower bound is equal to upper bound), or the upper bound is [`None`].
972
972
/// The upper bound must only be [`None`] if the actual iterator length is
973
- /// larger than [`usize::MAX`].
973
+ /// larger than [`usize::MAX`]. In that case, the lower bound must be
974
+ /// [`usize::MAX`], resulting in a [`.size_hint`] of `(usize::MAX, None)`.
974
975
///
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.
976
978
///
977
979
/// # Safety
978
980
///
You can’t perform that action at this time.
0 commit comments