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 {
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);
You can’t perform that action at this time.
0 commit comments