Skip to content

Commit 86d8e47

Browse files
committed
Fix broken grammar in iter::from_fn() docs
1 parent b139669 commit 86d8e47

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libcore/iter/sources.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,8 @@ pub fn once_with<A, F: FnOnce() -> A>(gen: F) -> OnceWith<F> {
504504
/// [`FusedIterator`]: trait.FusedIterator.html
505505
/// [`Iterator::size_hint`]: trait.Iterator.html#method.size_hint
506506
///
507-
/// The closure can use its its captures and environment
508-
/// to track state across iterations.
509-
/// Depending on how the iterator is used,
510-
/// this may require specifying the `move` keyword on the closure.
507+
/// The closure can use captures and its environment to track state across iterations. Depending on
508+
/// how the iterator is used, this may require specifying the `move` keyword on the closure.
511509
///
512510
/// # Examples
513511
///

0 commit comments

Comments
 (0)