]> git.lizzy.rs Git - rust.git/commitdiff
Purge `isize` from `core::iter`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Tue, 10 Mar 2015 10:36:11 +0000 (11:36 +0100)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Tue, 10 Mar 2015 10:36:11 +0000 (11:36 +0100)
src/libcore/iter.rs

index 88a729a3db09e92682022b71406d35cd6f483930..312778b2a10362b7d11baf49d1c0d2bb5657314b 100644 (file)
@@ -488,7 +488,7 @@ fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
     /// # 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() {
@@ -796,7 +796,7 @@ fn min(self) -> Option<Self::Item> where Self::Item: Ord
     /// ```
     /// 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];
@@ -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);