File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1565,6 +1565,8 @@ pub trait Iterator {
1565
1565
/// as soon as it finds a `false`, given that no matter what else happens,
1566
1566
/// the result will also be `false`.
1567
1567
///
1568
+ /// An empty iterator returns `true`.
1569
+ ///
1568
1570
/// # Examples
1569
1571
///
1570
1572
/// Basic usage:
@@ -1613,6 +1615,8 @@ pub trait Iterator {
1613
1615
/// as soon as it finds a `true`, given that no matter what else happens,
1614
1616
/// the result will also be `true`.
1615
1617
///
1618
+ /// An empty iterator returns `false`.
1619
+ ///
1616
1620
/// # Examples
1617
1621
///
1618
1622
/// Basic usage:
@@ -2071,6 +2075,8 @@ pub trait Iterator {
2071
2075
///
2072
2076
/// Takes each element, adds them together, and returns the result.
2073
2077
///
2078
+ /// An empty iterator returns the zero value of the type.
2079
+ ///
2074
2080
/// # Examples
2075
2081
///
2076
2082
/// Basic usage:
@@ -2094,6 +2100,8 @@ pub trait Iterator {
2094
2100
2095
2101
/// Iterates over the entire iterator, multiplying all the elements
2096
2102
///
2103
+ /// An empty iterator returns the one value of the type.
2104
+ ///
2097
2105
/// # Examples
2098
2106
///
2099
2107
/// ```
You can’t perform that action at this time.
0 commit comments