diff options
| author | Ivan Stankovic <pokemon@fly.srk.fer.hr> | 2015-11-29 14:52:29 +0100 |
|---|---|---|
| committer | Ivan Stankovic <pokemon@fly.srk.fer.hr> | 2015-11-29 14:52:29 +0100 |
| commit | 0cd923ee0655acd176fd98d075f7333915e3d8fa (patch) | |
| tree | 718c1d2574140fb49fd712e0e0d6468cf37a887b /src/libcore | |
| parent | 323781cdf700172a9b8fedf0614a995d4a4d81c0 (diff) | |
libcore/iter: fix typos
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/iter.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 98359b70ca1..8cc7f531c58 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -924,13 +924,13 @@ pub trait Iterator { /// /// assert_eq!(iter.next(), Some(&2)); /// - /// // we can peek() multiple times, the itererator won't advance + /// // we can peek() multiple times, the iterator won't advance /// assert_eq!(iter.peek(), Some(&&3)); /// assert_eq!(iter.peek(), Some(&&3)); /// /// assert_eq!(iter.next(), Some(&3)); /// - /// // after the itererator is finished, so is peek() + /// // after the iterator is finished, so is peek() /// assert_eq!(iter.peek(), None); /// assert_eq!(iter.next(), None); /// ``` @@ -3556,13 +3556,13 @@ impl<I: Iterator> Peekable<I> { /// /// assert_eq!(iter.next(), Some(&2)); /// - /// // we can peek() multiple times, the itererator won't advance + /// // we can peek() multiple times, the iterator won't advance /// assert_eq!(iter.peek(), Some(&&3)); /// assert_eq!(iter.peek(), Some(&&3)); /// /// assert_eq!(iter.next(), Some(&3)); /// - /// // after the itererator is finished, so is peek() + /// // after the iterator is finished, so is peek() /// assert_eq!(iter.peek(), None); /// assert_eq!(iter.next(), None); /// ``` |
