diff options
| author | Michael Goulet <michael@errs.io> | 2022-12-27 12:33:36 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-27 12:33:36 -0800 |
| commit | 7f5f31bc376943c0f6085f714f6745423bae0ade (patch) | |
| tree | 6639cc25c91e68f9da316f3e88da4f145630e4fb | |
| parent | 18bf19c3a944bf109085a2741706f10ed53435b2 (diff) | |
| parent | 9f18cc9e5179afa656fdf7a19f372d8ca0bb9d49 (diff) | |
| download | rust-7f5f31bc376943c0f6085f714f6745423bae0ade.tar.gz rust-7f5f31bc376943c0f6085f714f6745423bae0ade.zip | |
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.
| -rw-r--r-- | library/core/src/iter/traits/iterator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index bac836292f8..08abb0b0d92 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -803,7 +803,7 @@ pub trait Iterator { /// (0..5).map(|x| x * 2 + 1) /// .for_each(move |x| tx.send(x).unwrap()); /// - /// let v: Vec<_> = rx.iter().collect(); + /// let v: Vec<_> = rx.iter().collect(); /// assert_eq!(v, vec![1, 3, 5, 7, 9]); /// ``` /// |
