Purge isize from core::iter

This commit is contained in:
Tobias Bucher
2015-03-10 11:36:11 +01:00
parent 1cc8b6ec66
commit fcae449b39

View File

@@ -488,7 +488,7 @@ pub trait IteratorExt: Iterator + Sized {
/// # Examples /// # 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 it = it.fuse();
/// let mut sum = 0; /// let mut sum = 0;
/// for x in it.by_ref() { /// for x in it.by_ref() {
@@ -796,7 +796,7 @@ pub trait IteratorExt: Iterator + Sized {
/// ``` /// ```
/// use std::iter::MinMaxResult::{NoElements, OneElement, MinMax}; /// use std::iter::MinMaxResult::{NoElements, OneElement, MinMax};
/// ///
/// let a: [isize; 0] = []; /// let a: [i32; 0] = [];
/// assert_eq!(a.iter().min_max(), NoElements); /// assert_eq!(a.iter().min_max(), NoElements);
/// ///
/// let a = [1]; /// let a = [1];
@@ -1246,7 +1246,7 @@ impl<T: Clone> MinMaxResult<T> {
/// ``` /// ```
/// use std::iter::MinMaxResult::{self, NoElements, OneElement, MinMax}; /// use std::iter::MinMaxResult::{self, NoElements, OneElement, MinMax};
/// ///
/// let r: MinMaxResult<isize> = NoElements; /// let r: MinMaxResult<i32> = NoElements;
/// assert_eq!(r.into_option(), None); /// assert_eq!(r.into_option(), None);
/// ///
/// let r = OneElement(1); /// let r = OneElement(1);