File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
library/core/src/iter/adapters Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use crate::ops::{ControlFlow, Try};
88/// This `struct` is created by the [`peekable`] method on [`Iterator`]. See its
99/// documentation for more.
1010///
11- /// `Peakable` has a implementation: `impl<I: Interator> From<Peekable<I>> for I`, use `I::from()` can get back to [`Iterator`].
11+ /// `Peakable` has an implementation: `impl<I: Interator> From<Peekable<I>> for I`, use `I::from()` can get back to [`Iterator`].
1212/// ```rust
1313/// struct Counter {
1414/// v: usize,
@@ -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 }
You can’t perform that action at this time.
0 commit comments