Skip to content

Commit

Permalink
Auto merge of #30101 - istankovic:fix-typos, r=steveklabnik
Browse files Browse the repository at this point in the history
Fix some typos in the docs for Peekable.

r? @steveklabnik
  • Loading branch information
bors committed Nov 30, 2015
2 parents b22d7a5 + 0cd923e commit 52d95e6
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 52d95e6

Please sign in to comment.