Fix iterator doc
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.
This commit is contained in:
parent
c669411afa
commit
e87209ecd6
@ -811,8 +811,7 @@ impl<A: Add<A, A> + Zero, T: Iterator<A>> AdditiveIterator<A> for T {
|
||||
}
|
||||
}
|
||||
|
||||
/// A trait for iterators over elements whose elements can be multiplied
|
||||
/// together.
|
||||
/// A trait for iterators over elements which can be multiplied together.
|
||||
pub trait MultiplicativeIterator<A> {
|
||||
/// Iterates over the entire iterator, multiplying all the elements
|
||||
///
|
||||
@ -840,7 +839,6 @@ impl<A: Mul<A, A> + One, T: Iterator<A>> MultiplicativeIterator<A> for T {
|
||||
}
|
||||
|
||||
/// A trait for iterators over elements which can be compared to one another.
|
||||
/// The type of each element must ascribe to the `PartialOrd` trait.
|
||||
pub trait OrdIterator<A> {
|
||||
/// Consumes the entire iterator to return the maximum element.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user