Skip to content

Commit fcae449

Browse files
committed
Purge isize from core::iter
1 parent 1cc8b6e commit fcae449

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/iter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ pub trait IteratorExt: Iterator + Sized {
488488
/// # Examples
489489
///
490490
/// ```
491-
/// fn process<U: Iterator<Item=isize>>(it: U) -> isize {
491+
/// fn process<U: Iterator<Item=i32>>(it: U) -> i32 {
492492
/// let mut it = it.fuse();
493493
/// let mut sum = 0;
494494
/// for x in it.by_ref() {
@@ -796,7 +796,7 @@ pub trait IteratorExt: Iterator + Sized {
796796
/// ```
797797
/// use std::iter::MinMaxResult::{NoElements, OneElement, MinMax};
798798
///
799-
/// let a: [isize; 0] = [];
799+
/// let a: [i32; 0] = [];
800800
/// assert_eq!(a.iter().min_max(), NoElements);
801801
///
802802
/// let a = [1];
@@ -1246,7 +1246,7 @@ impl<T: Clone> MinMaxResult<T> {
12461246
/// ```
12471247
/// use std::iter::MinMaxResult::{self, NoElements, OneElement, MinMax};
12481248
///
1249-
/// let r: MinMaxResult<isize> = NoElements;
1249+
/// let r: MinMaxResult<i32> = NoElements;
12501250
/// assert_eq!(r.into_option(), None);
12511251
///
12521252
/// let r = OneElement(1);

0 commit comments

Comments
 (0)