mirror of https://github.com/rust-lang/rust.git
Fix typo in size_hint example comment
This commit is contained in:
parent
2cc3358e4f
commit
641d05353a
|
@ -119,7 +119,7 @@ pub trait Iterator {
|
|||
/// // exactly wouldn't be possible without executing filter().
|
||||
/// assert_eq!((0, Some(10)), iter.size_hint());
|
||||
///
|
||||
/// // Let's add one five more numbers with chain()
|
||||
/// // Let's add five more numbers with chain()
|
||||
/// let iter = (0..10).filter(|x| x % 2 == 0).chain(15..20);
|
||||
///
|
||||
/// // now both bounds are increased by five
|
||||
|
|
Loading…
Reference in New Issue