diff options
| author | Alexis Bourget <alexis.bourget@gmail.com> | 2020-09-20 18:04:12 +0200 |
|---|---|---|
| committer | Alexis Bourget <alexis.bourget@gmail.com> | 2020-09-20 18:04:12 +0200 |
| commit | 08b85a6fc88b4c7b5e02742b5df825b62e168f81 (patch) | |
| tree | d4d965fe0da7b3237343be96a2289235f875be19 | |
| parent | 982ec0d0c9ed93d806340502d48de190e1558a64 (diff) | |
| download | rust-08b85a6fc88b4c7b5e02742b5df825b62e168f81.tar.gz rust-08b85a6fc88b4c7b5e02742b5df825b62e168f81.zip | |
use iter:: before free functions
| -rw-r--r-- | library/core/src/iter/sources.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/library/core/src/iter/sources.rs b/library/core/src/iter/sources.rs index c28538ef027..97562cf73b8 100644 --- a/library/core/src/iter/sources.rs +++ b/library/core/src/iter/sources.rs @@ -531,8 +531,10 @@ where /// An iterator where each iteration calls the provided closure `F: FnMut() -> Option<T>`. /// -/// This `struct` is created by the [`from_fn()`] function. +/// This `struct` is created by the [`iter::from_fn()`] function. /// See its documentation for more. +/// +/// [`iter::from_fn()`]: from_fn #[derive(Clone)] #[stable(feature = "iter_from_fn", since = "1.34.0")] pub struct FromFn<F>(F); @@ -581,8 +583,10 @@ where /// An new iterator where each successive item is computed based on the preceding one. /// -/// This `struct` is created by the [`successors()`] function. +/// This `struct` is created by the [`iter::successors()`] function. /// See its documentation for more. +/// +/// [`iter::successors()`]: successors #[derive(Clone)] #[stable(feature = "iter_successors", since = "1.34.0")] pub struct Successors<T, F> { |
