about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWaffle <waffle.lapkin@gmail.com>2020-10-08 14:02:28 +0300
committerWaffle <waffle.lapkin@gmail.com>2020-11-22 02:39:21 +0300
commit0dc187c787693a5e1bba1bfc2fb14b1012b17c85 (patch)
treec69a39ca1082e8bd9ab70aa4747a6bae32a2a0a7
parentb82a76ae3a44b9ebc353b77764be1a5cd8ffcc47 (diff)
downloadrust-0dc187c787693a5e1bba1bfc2fb14b1012b17c85.tar.gz
rust-0dc187c787693a5e1bba1bfc2fb14b1012b17c85.zip
Fix doc links in core::iter::sources
-rw-r--r--library/core/src/iter/sources/from_fn.rs1
-rw-r--r--library/core/src/iter/sources/once_with.rs1
-rw-r--r--library/core/src/iter/sources/repeat.rs2
-rw-r--r--library/core/src/iter/sources/repeat_with.rs1
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