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 authored and gitbot committed Feb 20, 2025
1 parent 62aef6a commit c712283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 c712283

Please sign in to comment.