Rollup merge of #58237 - sdroege:docs-its-its, r=SimonSapin

Fix broken grammar in iter::from_fn() docs

Was introduced by https://github.com/rust-lang/rust/pull/58062

CC @SimonSapin
This commit is contained in:
kennytm 2019-02-07 13:57:57 +08:00 committed by GitHub
commit 9b28322460
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
///