Skip to content

Commit

Permalink
Rollup merge of rust-lang#58237 - sdroege:docs-its-its, r=SimonSapin
Browse files Browse the repository at this point in the history
Fix broken grammar in iter::from_fn() docs

Was introduced by rust-lang#58062

CC @SimonSapin
  • Loading branch information
kennytm authored Feb 7, 2019
2 parents 86c761f + 86d8e47 commit 9b28322
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libcore/iter/sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,8 @@ pub fn once_with<A, F: FnOnce() -> A>(gen: F) -> OnceWith<F> {
/// [`FusedIterator`]: trait.FusedIterator.html
/// [`Iterator::size_hint`]: trait.Iterator.html#method.size_hint
///
/// The closure can use its its captures and environment
/// to track state across iterations.
/// Depending on how the iterator is used,
/// this may require specifying the `move` keyword on the closure.
/// The closure can use captures and its environment to track state across iterations. Depending on
/// how the iterator is used, this may require specifying the `move` keyword on the closure.
///
/// # Examples
///
Expand Down

0 comments on commit 9b28322

Please sign in to comment.