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