Skip to content

Commit 448fa11

Browse files
authored
Rollup merge of #135886 - hkBst:patch-14, r=workingjubilee
Document purpose of closure in from_fn.rs more clearly partial fix for #135087 together with #135895
2 parents 32c04fc + d3cd832 commit 448fa11

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)