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.
This commit is contained in:
commit
58413c09cd
1 changed files with 1 additions and 3 deletions
|
@ -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
|
/// A trait for iterators over elements which can be multiplied together.
|
||||||
/// together.
|
|
||||||
pub trait MultiplicativeIterator<A> {
|
pub trait MultiplicativeIterator<A> {
|
||||||
/// Iterates over the entire iterator, multiplying all the elements
|
/// 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.
|
/// 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> {
|
pub trait OrdIterator<A> {
|
||||||
/// Consumes the entire iterator to return the maximum element.
|
/// Consumes the entire iterator to return the maximum element.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue