Rollup merge of #92525 - zohnannor:patch-1, r=camelid

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 c59b188aae
Related to #29377
This commit is contained in:
Matthias Krüger 2022-01-04 16:34:19 +01:00 committed by GitHub
commit b2d6ff4b6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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