File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ pub trait IteratorExt: Iterator + Sized {
488
488
/// # Examples
489
489
///
490
490
/// ```
491
- /// fn process<U: Iterator<Item=isize >>(it: U) -> isize {
491
+ /// fn process<U: Iterator<Item=i32 >>(it: U) -> i32 {
492
492
/// let mut it = it.fuse();
493
493
/// let mut sum = 0;
494
494
/// for x in it.by_ref() {
@@ -797,7 +797,7 @@ pub trait IteratorExt: Iterator + Sized {
797
797
/// ```
798
798
/// use std::iter::MinMaxResult::{NoElements, OneElement, MinMax};
799
799
///
800
- /// let a: [isize ; 0] = [];
800
+ /// let a: [i32 ; 0] = [];
801
801
/// assert_eq!(a.iter().min_max(), NoElements);
802
802
///
803
803
/// let a = [1];
@@ -1251,7 +1251,7 @@ impl<T: Clone> MinMaxResult<T> {
1251
1251
/// ```
1252
1252
/// use std::iter::MinMaxResult::{self, NoElements, OneElement, MinMax};
1253
1253
///
1254
- /// let r: MinMaxResult<isize > = NoElements;
1254
+ /// let r: MinMaxResult<i32 > = NoElements;
1255
1255
/// assert_eq!(r.into_option(), None);
1256
1256
///
1257
1257
/// let r = OneElement(1);
You can’t perform that action at this time.
0 commit comments