Skip to content

Commit 7f5f31b

Browse files
Rollup merge of #106179 - RetroSeven:typo_fix, r=compiler-errors
Fix a formatting error in Iterator::for_each docs There is a formatting error (extra space in an assignment) in the documentation of `core::iter::Iterator::for_each`, which I have fixed in this pull request.
2 parents 18bf19c + 9f18cc9 commit 7f5f31b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/iter/traits/iterator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ pub trait Iterator {
803803
/// (0..5).map(|x| x * 2 + 1)
804804
/// .for_each(move |x| tx.send(x).unwrap());
805805
///
806-
/// let v: Vec<_> = rx.iter().collect();
806+
/// let v: Vec<_> = rx.iter().collect();
807807
/// assert_eq!(v, vec![1, 3, 5, 7, 9]);
808808
/// ```
809809
///

0 commit comments

Comments
 (0)