We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 36d6d0d + d3cd832 commit 9e96c80Copy full SHA for 9e96c80
library/core/src/iter/sources/from_fn.rs
@@ -1,7 +1,7 @@
1
use crate::fmt;
2
3
-/// Creates a new iterator where each iteration calls the provided closure
4
-/// `F: FnMut() -> Option<T>`.
+/// Creates an iterator with the provided closure
+/// `F: FnMut() -> Option<T>` as its `[next](Iterator::next)` method.
5
///
6
/// The iterator will yield the `T`s returned from the closure.
7
0 commit comments