Skip to content

Commit

Permalink
Rollup merge of rust-lang#92525 - zohnannor:patch-1, r=camelid
Browse files Browse the repository at this point in the history
intra-doc: Make `Receiver::into_iter` into a clickable link

The documentation on `std::sync::mpsc::Iter` and `std::sync::mpsc::TryIter` provides links to the corresponding `Receiver` methods, unlike `std::sync::mpsc::IntoIter` does.

This was left out in c59b188
Related to rust-lang#29377
  • Loading branch information
matthiaskrgr authored Jan 4, 2022
2 parents 25fcc0e + ca3f904 commit b2d6ff4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/std/src/sync/mpsc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,13 @@ pub struct TryIter<'a, T: 'a> {
}

/// An owning iterator over messages on a [`Receiver`],
/// created by **Receiver::into_iter**.
/// created by [`into_iter`].
///
/// This iterator will block whenever [`next`]
/// is called, waiting for a new message, and [`None`] will be
/// returned if the corresponding channel has hung up.
///
/// [`into_iter`]: Receiver::into_iter
/// [`next`]: Iterator::next
///
/// # Examples
Expand Down

0 comments on commit b2d6ff4

Please sign in to comment.