Skip to content

Commit c5233b7

Browse files
committed
Fix typo in internal documentation for TrustedRandomAccess
`next_back` is a method of DoubleEndedIterator, not Iterator.
1 parent 80af6b0 commit c5233b7

File tree

1 file changed

+1
-1
lines changed
  • library/core/src/iter/adapters

1 file changed

+1
-1
lines changed

library/core/src/iter/adapters/zip.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ impl<A: Debug + TrustedRandomAccess, B: Debug + TrustedRandomAccess> ZipFmt<A, B
434434
/// called on `self`:
435435
/// * `std::clone::Clone::clone()`
436436
/// * `std::iter::Iterator::size_hint()`
437-
/// * `std::iter::Iterator::next_back()`
437+
/// * `std::iter::DoubleEndedIterator::next_back()`
438438
/// * `std::iter::Iterator::__iterator_get_unchecked()`
439439
/// * `std::iter::TrustedRandomAccess::size()`
440440
///

0 commit comments

Comments
 (0)