diff options
| author | Waffle <waffle.lapkin@gmail.com> | 2020-10-08 14:02:28 +0300 |
|---|---|---|
| committer | Waffle <waffle.lapkin@gmail.com> | 2020-11-22 02:39:21 +0300 |
| commit | 0dc187c787693a5e1bba1bfc2fb14b1012b17c85 (patch) | |
| tree | c69a39ca1082e8bd9ab70aa4747a6bae32a2a0a7 | |
| parent | b82a76ae3a44b9ebc353b77764be1a5cd8ffcc47 (diff) | |
| download | rust-0dc187c787693a5e1bba1bfc2fb14b1012b17c85.tar.gz rust-0dc187c787693a5e1bba1bfc2fb14b1012b17c85.zip | |
Fix doc links in core::iter::sources
| -rw-r--r-- | library/core/src/iter/sources/from_fn.rs | 1 | ||||
| -rw-r--r-- | library/core/src/iter/sources/once_with.rs | 1 | ||||
| -rw-r--r-- | library/core/src/iter/sources/repeat.rs | 2 | ||||
| -rw-r--r-- | library/core/src/iter/sources/repeat_with.rs | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/library/core/src/iter/sources/from_fn.rs b/library/core/src/iter/sources/from_fn.rs index f646aa236a1..3cd3830471c 100644 --- a/library/core/src/iter/sources/from_fn.rs +++ b/library/core/src/iter/sources/from_fn.rs @@ -15,6 +15,7 @@ use crate::fmt; /// how the iterator is used, this may require specifying the [`move`] keyword on the closure. /// /// [`move`]: ../../std/keyword.move.html +/// [`FusedIterator`]: crate::iter::FusedIterator /// /// # Examples /// diff --git a/library/core/src/iter/sources/once_with.rs b/library/core/src/iter/sources/once_with.rs index 36f476a574a..cf6a3c11524 100644 --- a/library/core/src/iter/sources/once_with.rs +++ b/library/core/src/iter/sources/once_with.rs @@ -11,6 +11,7 @@ use crate::iter::{FusedIterator, TrustedLen}; /// Unlike [`once()`], this function will lazily generate the value on request. /// /// [`chain()`]: Iterator::chain +/// [`once()`]: crate::iter::once /// /// # Examples /// diff --git a/library/core/src/iter/sources/repeat.rs b/library/core/src/iter/sources/repeat.rs index 8448626ce94..d1f2879235f 100644 --- a/library/core/src/iter/sources/repeat.rs +++ b/library/core/src/iter/sources/repeat.rs @@ -11,6 +11,8 @@ use crate::iter::{FusedIterator, TrustedLen}; /// or if you do not want to keep the repeated element in memory, you can /// instead use the [`repeat_with()`] function. /// +/// [`repeat_with()`]: crate::iter::repeat_with +/// /// # Examples /// /// Basic usage: diff --git a/library/core/src/iter/sources/repeat_with.rs b/library/core/src/iter/sources/repeat_with.rs index 7e2d134368f..44bc6890c55 100644 --- a/library/core/src/iter/sources/repeat_with.rs +++ b/library/core/src/iter/sources/repeat_with.rs @@ -16,6 +16,7 @@ use crate::iter::{FusedIterator, TrustedLen}; /// If you need `repeat_with()` to return a [`DoubleEndedIterator`], /// please open a GitHub issue explaining your use case. /// +/// [`repeat()`]: crate::iter::repeat /// [`DoubleEndedIterator`]: crate::iter::DoubleEndedIterator /// /// # Examples |
