Skip to content

Commit

Permalink
Rollup merge of #82888 - Daggy1234:patch-1, r=joshtriplett
Browse files Browse the repository at this point in the history
Grammar Fixes

Found typo's in the array rustdoc. Pr'ed a fix!
  • Loading branch information
m-ou-se authored Mar 8, 2021
2 parents 3908eec + 655155c commit 2d3ba78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/core/src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn from_mut<T>(s: &mut T) -> &mut [T; 1] {
/// without causing much metadata bloat.
///
/// The trait is marked unsafe in order to restrict implementors to fixed-size
/// arrays. User of this trait can assume that implementors have the exact
/// arrays. A user of this trait can assume that implementors have the exact
/// layout in memory of a fixed size array (for example, for unsafe
/// initialization).
///
Expand Down Expand Up @@ -489,7 +489,7 @@ impl<T, const N: usize> [T; N] {
/// ```
///
/// This method is particularly useful if combined with other methods, like
/// [`map`](#method.map). This way, you can can avoid moving the original
/// [`map`](#method.map). This way, you can avoid moving the original
/// array if its elements are not `Copy`.
///
/// ```
Expand Down Expand Up @@ -564,7 +564,7 @@ where
/// yields fewer than `N` items, `None` is returned and all already yielded
/// items are dropped.
///
/// Since the iterator is passed as mutable reference and this function calls
/// Since the iterator is passed as a mutable reference and this function calls
/// `next` at most `N` times, the iterator can still be used afterwards to
/// retrieve the remaining items.
///
Expand Down

0 comments on commit 2d3ba78

Please sign in to comment.