Skip to content

Commit

Permalink
Purge isize from core::iter
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Mar 10, 2015
1 parent 1cc8b6e commit fcae449
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcore/iter.rs
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 @@ -796,7 +796,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 @@ -1246,7 +1246,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 fcae449

Please sign in to comment.