about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Ford <corey@coreyford.name>2014-09-23 20:59:26 -0700
committerCorey Ford <corey@coreyford.name>2014-09-23 21:06:00 -0700
commite87209ecd6fd22bde2185083e7034c674498d915 (patch)
tree1d3a10242e8631582c03444bc205cba7d0336cb2
parentc669411afa76bdc92369a3a193e9393364d42370 (diff)
downloadrust-e87209ecd6fd22bde2185083e7034c674498d915.tar.gz
rust-e87209ecd6fd22bde2185083e7034c674498d915.zip
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.
-rw-r--r--src/libcore/iter.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs
index f84c5eec452..f78c8c2aa0e 100644
--- a/src/libcore/iter.rs
+++ b/src/libcore/iter.rs
@@ -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.
     ///