Skip to content

Commit

Permalink
Document purpose of closure in from_fn.rs more clearly
Browse files Browse the repository at this point in the history
  • Loading branch information
hkBst committed Jan 26, 2025
1 parent b2728d5 commit d3cd832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/iter/sources/from_fn.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::fmt;

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

0 comments on commit d3cd832

Please # to comment.