Skip to content

Commit 08b85a6

Browse files
committed
use iter:: before free functions
1 parent 982ec0d commit 08b85a6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

library/core/src/iter/sources.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,10 @@ where
531531

532532
/// An iterator where each iteration calls the provided closure `F: FnMut() -> Option<T>`.
533533
///
534-
/// This `struct` is created by the [`from_fn()`] function.
534+
/// This `struct` is created by the [`iter::from_fn()`] function.
535535
/// See its documentation for more.
536+
///
537+
/// [`iter::from_fn()`]: from_fn
536538
#[derive(Clone)]
537539
#[stable(feature = "iter_from_fn", since = "1.34.0")]
538540
pub struct FromFn<F>(F);
@@ -581,8 +583,10 @@ where
581583

582584
/// An new iterator where each successive item is computed based on the preceding one.
583585
///
584-
/// This `struct` is created by the [`successors()`] function.
586+
/// This `struct` is created by the [`iter::successors()`] function.
585587
/// See its documentation for more.
588+
///
589+
/// [`iter::successors()`]: successors
586590
#[derive(Clone)]
587591
#[stable(feature = "iter_successors", since = "1.34.0")]
588592
pub struct Successors<T, F> {

0 commit comments

Comments
 (0)