Skip to content

Commit

Permalink
Rollup merge of rust-lang#23247 - tbu-:pr_core_iter_rm_isize, r=huonw
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Mar 11, 2015
2 parents 5079bd1 + fcae449 commit 9d775a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcore/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ pub trait IteratorExt: Iterator + Sized {
/// # Examples
///
/// ```
/// fn process<U: Iterator<Item=isize>>(it: U) -> isize {
/// fn process<U: Iterator<Item=i32>>(it: U) -> i32 {
/// let mut it = it.fuse();
/// let mut sum = 0;
/// for x in it.by_ref() {
Expand Down Expand Up @@ -797,7 +797,7 @@ pub trait IteratorExt: Iterator + Sized {
/// ```
/// use std::iter::MinMaxResult::{NoElements, OneElement, MinMax};
///
/// let a: [isize; 0] = [];
/// let a: [i32; 0] = [];
/// assert_eq!(a.iter().min_max(), NoElements);
///
/// let a = [1];
Expand Down Expand Up @@ -1251,7 +1251,7 @@ impl<T: Clone> MinMaxResult<T> {
/// ```
/// use std::iter::MinMaxResult::{self, NoElements, OneElement, MinMax};
///
/// let r: MinMaxResult<isize> = NoElements;
/// let r: MinMaxResult<i32> = NoElements;
/// assert_eq!(r.into_option(), None);
///
/// let r = OneElement(1);
Expand Down

0 comments on commit 9d775a8

Please sign in to comment.