Skip to content

Commit 58413c0

Browse files
committed
auto merge of #17498 : coyotebush/rust/iter-doc, r=huonw
OrdIterator: the doc says that values must implement `PartialOrd`, while the implementation is only for `Ord` values. It looks like this initially got out of sync in 4e1c215. Removed the doc sentence entirely since it seems redundant. MultiplicativeIterator: Fixed weird sentence.
2 parents 375fe17 + e87209e commit 58413c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libcore/iter.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,7 @@ impl<A: Add<A, A> + Zero, T: Iterator<A>> AdditiveIterator<A> for T {
811811
}
812812
}
813813

814-
/// A trait for iterators over elements whose elements can be multiplied
815-
/// together.
814+
/// A trait for iterators over elements which can be multiplied together.
816815
pub trait MultiplicativeIterator<A> {
817816
/// Iterates over the entire iterator, multiplying all the elements
818817
///
@@ -840,7 +839,6 @@ impl<A: Mul<A, A> + One, T: Iterator<A>> MultiplicativeIterator<A> for T {
840839
}
841840

842841
/// A trait for iterators over elements which can be compared to one another.
843-
/// The type of each element must ascribe to the `PartialOrd` trait.
844842
pub trait OrdIterator<A> {
845843
/// Consumes the entire iterator to return the maximum element.
846844
///

0 commit comments

Comments
 (0)