Skip to content

Commit e474bdd

Browse files
matthiaskrgrgitbot
authored and
gitbot
committed
Rollup merge of rust-lang#135886 - hkBst:patch-14, r=workingjubilee
Document purpose of closure in from_fn.rs more clearly partial fix for rust-lang#135087 together with rust-lang#135895
2 parents cf42e05 + f190cc6 commit e474bdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: 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)