Skip to content

Commit 68aabe9

Browse files
committed
534: fix the relative links to the iter module r=cuviper a=nikomatsakis Browsing the Rayon 1.0 docs I hit a few snags. 554: Fix typos r=cuviper a=matthiasbeyer I'm not entirely sure about the second patch in here, please confirm that this is correct.
3 parents c2ee037 + 089f76e + afcdd39 commit 68aabe9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/iter/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -745,9 +745,9 @@ pub trait ParallelIterator: Sized + Send {
745745
/// ### Fold vs Map/Reduce
746746
///
747747
/// Fold makes sense if you have some operation where it is
748-
/// cheaper to groups of elements at a time. For example, imagine
749-
/// collecting characters into a string. If you were going to use
750-
/// map/reduce, you might try this:
748+
/// cheaper to create groups of elements at a time. For example,
749+
/// imagine collecting characters into a string. If you were going
750+
/// to use map/reduce, you might try this:
751751
///
752752
/// ```
753753
/// use rayon::prelude::*;
@@ -765,7 +765,7 @@ pub trait ParallelIterator: Sized + Send {
765765
/// Because reduce produces the same type of element as its input,
766766
/// you have to first map each character into a string, and then
767767
/// you can reduce them. This means we create one string per
768-
/// element in ou iterator -- not so great. Using `fold`, we can
768+
/// element in our iterator -- not so great. Using `fold`, we can
769769
/// do this instead:
770770
///
771771
/// ```

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//! - [`ThreadPoolBuilder`] can be used to create your own thread pools or customize
2929
//! the global one.
3030
//!
31-
//! [iter module]: iter
31+
//! [iter module]: iter/index.html
3232
//! [`join`]: fn.join.html
3333
//! [`scope`]: fn.scope.html
3434
//! [`par_sort`]: slice/trait.ParallelSliceMut.html#method.par_sort

0 commit comments

Comments
 (0)