File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1565,6 +1565,8 @@ pub trait Iterator {
15651565 /// as soon as it finds a `false`, given that no matter what else happens,
15661566 /// the result will also be `false`.
15671567 ///
1568+ /// An empty iterator returns `true`.
1569+ ///
15681570 /// # Examples
15691571 ///
15701572 /// Basic usage:
@@ -1613,6 +1615,8 @@ pub trait Iterator {
16131615 /// as soon as it finds a `true`, given that no matter what else happens,
16141616 /// the result will also be `true`.
16151617 ///
1618+ /// An empty iterator returns `false`.
1619+ ///
16161620 /// # Examples
16171621 ///
16181622 /// Basic usage:
@@ -2071,6 +2075,8 @@ pub trait Iterator {
20712075 ///
20722076 /// Takes each element, adds them together, and returns the result.
20732077 ///
2078+ /// An empty iterator returns the zero value of the type.
2079+ ///
20742080 /// # Examples
20752081 ///
20762082 /// Basic usage:
@@ -2094,6 +2100,8 @@ pub trait Iterator {
20942100
20952101 /// Iterates over the entire iterator, multiplying all the elements
20962102 ///
2103+ /// An empty iterator returns the one value of the type.
2104+ ///
20972105 /// # Examples
20982106 ///
20992107 /// ```
You can’t perform that action at this time.
0 commit comments