Skip to content

Commit 0dc187c

Browse files
committed
Fix doc links in core::iter::sources
1 parent b82a76a commit 0dc187c

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

library/core/src/iter/sources/from_fn.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use crate::fmt;
1515
/// how the iterator is used, this may require specifying the [`move`] keyword on the closure.
1616
///
1717
/// [`move`]: ../../std/keyword.move.html
18+
/// [`FusedIterator`]: crate::iter::FusedIterator
1819
///
1920
/// # Examples
2021
///

library/core/src/iter/sources/once_with.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use crate::iter::{FusedIterator, TrustedLen};
1111
/// Unlike [`once()`], this function will lazily generate the value on request.
1212
///
1313
/// [`chain()`]: Iterator::chain
14+
/// [`once()`]: crate::iter::once
1415
///
1516
/// # Examples
1617
///

library/core/src/iter/sources/repeat.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ use crate::iter::{FusedIterator, TrustedLen};
1111
/// or if you do not want to keep the repeated element in memory, you can
1212
/// instead use the [`repeat_with()`] function.
1313
///
14+
/// [`repeat_with()`]: crate::iter::repeat_with
15+
///
1416
/// # Examples
1517
///
1618
/// Basic usage:

library/core/src/iter/sources/repeat_with.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use crate::iter::{FusedIterator, TrustedLen};
1616
/// If you need `repeat_with()` to return a [`DoubleEndedIterator`],
1717
/// please open a GitHub issue explaining your use case.
1818
///
19+
/// [`repeat()`]: crate::iter::repeat
1920
/// [`DoubleEndedIterator`]: crate::iter::DoubleEndedIterator
2021
///
2122
/// # Examples

0 commit comments

Comments
 (0)