diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-28 14:23:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-28 14:23:23 +0100 |
| commit | 448fa117f8c0beed21967cc732a289ad526ffff4 (patch) | |
| tree | 4acc309478465a42f2c75a72f8d6c6d76a9f4c06 | |
| parent | 32c04fc509b6adadcab018197e78e375cd778560 (diff) | |
| parent | d3cd832ddadd4146f49c1e3e919d0eb4c6a3c732 (diff) | |
| download | rust-448fa117f8c0beed21967cc732a289ad526ffff4.tar.gz rust-448fa117f8c0beed21967cc732a289ad526ffff4.zip | |
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 https://github.com/rust-lang/rust/pull/135895
| -rw-r--r-- | library/core/src/iter/sources/from_fn.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/iter/sources/from_fn.rs b/library/core/src/iter/sources/from_fn.rs index 5f3d404d7dc..75cc0ffe3c7 100644 --- a/library/core/src/iter/sources/from_fn.rs +++ b/library/core/src/iter/sources/from_fn.rs @@ -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. /// |
