Fix broken grammar in iter::from_fn() docs
This commit is contained in:
@@ -504,10 +504,8 @@ pub fn once_with<A, F: FnOnce() -> A>(gen: F) -> OnceWith<F> {
|
|||||||
/// [`FusedIterator`]: trait.FusedIterator.html
|
/// [`FusedIterator`]: trait.FusedIterator.html
|
||||||
/// [`Iterator::size_hint`]: trait.Iterator.html#method.size_hint
|
/// [`Iterator::size_hint`]: trait.Iterator.html#method.size_hint
|
||||||
///
|
///
|
||||||
/// The closure can use its its captures and environment
|
/// The closure can use captures and its environment to track state across iterations. Depending on
|
||||||
/// to track state across iterations.
|
/// how the iterator is used, this may require specifying the `move` keyword on the closure.
|
||||||
/// Depending on how the iterator is used,
|
|
||||||
/// this may require specifying the `move` keyword on the closure.
|
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user