Skip to content

Commit 82c3163

Browse files
Rollup merge of rust-lang#41916 - mglagla:typo, r=sfackler
Fix typo in Iterator::size_hint example comment
2 parents 8b62560 + 641d053 commit 82c3163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter/iterator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub trait Iterator {
119119
/// // exactly wouldn't be possible without executing filter().
120120
/// assert_eq!((0, Some(10)), iter.size_hint());
121121
///
122-
/// // Let's add one five more numbers with chain()
122+
/// // Let's add five more numbers with chain()
123123
/// let iter = (0..10).filter(|x| x % 2 == 0).chain(15..20);
124124
///
125125
/// // now both bounds are increased by five

0 commit comments

Comments
 (0)