Skip to content

Commit c87d36c

Browse files
committed
Impl From<Peekable> for Iterator
1 parent bf55b14 commit c87d36c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/iter/adapters/peekable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::ops::{ControlFlow, Try};
2727
/// let counter = Counter { v: 0 };
2828
/// let mut peekable = counter.peekable();
2929
/// assert_eq!(peekable.peek(), Some(&0));
30-
/// let counter: Counter = Counter::from(peekable);
30+
/// let counter = Counter::from(peekable);
3131
/// assert_eq!(counter.next(), Some(0));
3232
/// ```
3333
///
@@ -49,7 +49,7 @@ impl<I: Iterator> Peekable<I> {
4949
}
5050
}
5151

52-
impl<I: Interator> From<Peekable<I>> for I {
52+
impl<I: Iterator> From<Peekable<I>> for I {
5353
fn from(p: Peekable<I>) -> Self {
5454
p.iter
5555
}

0 commit comments

Comments
 (0)