about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2019-02-06 19:24:20 +0200
committerSebastian Dröge <sebastian@centricular.com>2019-02-06 19:24:20 +0200
commit86d8e47c11ade35ab706ca462f36eb5cfd3bf24b (patch)
tree5ebe81925b25f2a09910b4e2a41674c74eb78e9f /src/libcore
parentb139669f374eb5024a50eb13f116ff763b1c5935 (diff)
downloadrust-86d8e47c11ade35ab706ca462f36eb5cfd3bf24b.tar.gz
rust-86d8e47c11ade35ab706ca462f36eb5cfd3bf24b.zip
Fix broken grammar in iter::from_fn() docs
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/iter/sources.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcore/iter/sources.rs b/src/libcore/iter/sources.rs
index 2b741e66170..6f45f082d6a 100644
--- a/src/libcore/iter/sources.rs
+++ b/src/libcore/iter/sources.rs
@@ -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
 ///