Skip to content

Commit

Permalink
Make Receiver::into_iter into a clickable link
Browse files Browse the repository at this point in the history
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 #29377
  • Loading branch information
zohnannor committed Jan 3, 2022
1 parent b5efe57 commit ca3f904
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/std/src/sync/mpsc/mod.rs
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 ca3f904

Please sign in to comment.