Skip to content

Commit

Permalink
Document that TrustedRandomAccess also requires that the number of it…
Browse files Browse the repository at this point in the history
…ems fits into an usize
  • Loading branch information
sdroege committed Jan 30, 2021
1 parent 44c5554 commit 49b8f87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/iter/adapters/zip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ impl<A: Debug + TrustedRandomAccess, B: Debug + TrustedRandomAccess> ZipFmt<A, B
///
/// # Safety
///
/// The iterator's `size_hint` must be exact and cheap to call.
/// The iterator's `size_hint` must be exact and cheap to call, which also
/// means that the number of items must fit into an `usize`.
///
/// `size` may not be overridden.
///
Expand Down

0 comments on commit 49b8f87

Please sign in to comment.