diff options
Diffstat (limited to 'src/iter/mod.rs')
-rw-r--r-- | src/iter/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/iter/mod.rs b/src/iter/mod.rs index e60ea16..7b5a29a 100644 --- a/src/iter/mod.rs +++ b/src/iter/mod.rs @@ -1547,7 +1547,7 @@ pub trait ParallelIterator: Sized + Send { /// Computes the maximum of all the items in the iterator with respect to /// the given comparison function. If the iterator is empty, `None` is - /// returned; otherwise, `Some(min)` is returned. + /// returned; otherwise, `Some(max)` is returned. /// /// Note that the order in which the items will be reduced is not /// specified, so if the comparison function is not associative, then @@ -2392,7 +2392,7 @@ impl<T: ParallelIterator> IntoParallelIterator for T { #[allow(clippy::len_without_is_empty)] pub trait IndexedParallelIterator: ParallelIterator { /// Collects the results of the iterator into the specified - /// vector. The vector is always truncated before execution + /// vector. The vector is always cleared before execution /// begins. If possible, reusing the vector across calls can lead /// to better performance since it reuses the same backing buffer. /// @@ -2401,7 +2401,7 @@ pub trait IndexedParallelIterator: ParallelIterator { /// ``` /// use rayon::prelude::*; /// - /// // any prior data will be truncated + /// // any prior data will be cleared /// let mut vec = vec![-1, -2, -3]; /// /// (0..5).into_par_iter() @@ -2414,7 +2414,7 @@ pub trait IndexedParallelIterator: ParallelIterator { } /// Unzips the results of the iterator into the specified - /// vectors. The vectors are always truncated before execution + /// vectors. The vectors are always cleared before execution /// begins. If possible, reusing the vectors across calls can lead /// to better performance since they reuse the same backing buffer. /// @@ -2423,7 +2423,7 @@ pub trait IndexedParallelIterator: ParallelIterator { /// ``` /// use rayon::prelude::*; /// - /// // any prior data will be truncated + /// // any prior data will be cleared /// let mut left = vec![42; 10]; /// let mut right = vec![-1; 10]; /// |