File tree 1 file changed +3
-3
lines changed
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() {
@@ -796,7 +796,7 @@ pub trait IteratorExt: Iterator + Sized {
796
796
/// ```
797
797
/// use std::iter::MinMaxResult::{NoElements, OneElement, MinMax};
798
798
///
799
- /// let a: [isize ; 0] = [];
799
+ /// let a: [i32 ; 0] = [];
800
800
/// assert_eq!(a.iter().min_max(), NoElements);
801
801
///
802
802
/// let a = [1];
@@ -1246,7 +1246,7 @@ impl<T: Clone> MinMaxResult<T> {
1246
1246
/// ```
1247
1247
/// use std::iter::MinMaxResult::{self, NoElements, OneElement, MinMax};
1248
1248
///
1249
- /// let r: MinMaxResult<isize > = NoElements;
1249
+ /// let r: MinMaxResult<i32 > = NoElements;
1250
1250
/// assert_eq!(r.into_option(), None);
1251
1251
///
1252
1252
/// let r = OneElement(1);
You can’t perform that action at this time.
0 commit comments