Skip to content

Commit

Permalink
libcore/iter: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Stankovic committed Nov 29, 2015
1 parent 323781c commit 0cd923e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libcore/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/// ```
Expand Down Expand Up @@ -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);
/// ```
Expand Down

0 comments on commit 0cd923e

Please sign in to comment.