Skip to content

Commit 7a9ef60

Browse files
committed
Rollup merge of #23247 - tbu-:pr_core_iter_rm_isize, r=huonw
2 parents 9e2cf11 + fcae449 commit 7a9ef60

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() {
@@ -797,7 +797,7 @@ pub trait IteratorExt: Iterator + Sized {
797797
/// ```
798798
/// use std::iter::MinMaxResult::{NoElements, OneElement, MinMax};
799799
///
800-
/// let a: [isize; 0] = [];
800+
/// let a: [i32; 0] = [];
801801
/// assert_eq!(a.iter().min_max(), NoElements);
802802
///
803803
/// let a = [1];
@@ -1251,7 +1251,7 @@ impl<T: Clone> MinMaxResult<T> {
12511251
/// ```
12521252
/// use std::iter::MinMaxResult::{self, NoElements, OneElement, MinMax};
12531253
///
1254-
/// let r: MinMaxResult<isize> = NoElements;
1254+
/// let r: MinMaxResult<i32> = NoElements;
12551255
/// assert_eq!(r.into_option(), None);
12561256
///
12571257
/// let r = OneElement(1);

0 commit comments

Comments
 (0)