diff options
| author | zohnannor <35764628+zohnannor@users.noreply.github.com> | 2022-01-03 20:17:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-03 20:17:57 +0300 |
| commit | ca3f9048a16fd817d1252f7f33a92b3a52252975 (patch) | |
| tree | ac9d920495eef928d812a2513f12c92965bf6425 | |
| parent | b5efe5727f5db54412cf2995d14def91140a5a42 (diff) | |
| download | rust-ca3f9048a16fd817d1252f7f33a92b3a52252975.tar.gz rust-ca3f9048a16fd817d1252f7f33a92b3a52252975.zip | |
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 c59b188aaeadea32625534250d1f5120420be000 Related to #29377
| -rw-r--r-- | library/std/src/sync/mpsc/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sync/mpsc/mod.rs b/library/std/src/sync/mpsc/mod.rs index 2cf678ef69b..2e54321e127 100644 --- a/library/std/src/sync/mpsc/mod.rs +++ b/library/std/src/sync/mpsc/mod.rs @@ -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 |
