Skip to content

Commit d3cd832

Browse files
committed
Document purpose of closure in from_fn.rs more clearly
1 parent b2728d5 commit d3cd832

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::fmt;
22

3-
/// Creates a new iterator where each iteration calls the provided closure
4-
/// `F: FnMut() -> Option<T>`.
3+
/// Creates an iterator with the provided closure
4+
/// `F: FnMut() -> Option<T>` as its `[next](Iterator::next)` method.
55
///
66
/// The iterator will yield the `T`s returned from the closure.
77
///

0 commit comments

Comments
 (0)