We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
..
1 parent b6c54a9 commit 56c5b1dCopy full SHA for 56c5b1d
library/core/src/iter/traits/iterator.rs
@@ -807,7 +807,7 @@ pub trait Iterator {
807
/// might be preferable to keep a functional style with longer iterators:
808
///
809
/// ```
810
- /// (0..5).flat_map(|x| x * 100 .. x * 110)
+ /// (0..5).flat_map(|x| (x * 100)..(x * 110))
811
/// .enumerate()
812
/// .filter(|&(i, x)| (i + x) % 3 == 0)
813
/// .for_each(|(i, x)| println!("{i}:{x}"));
0 commit comments