Skip to content

Commit 2d3ba78

Browse files
authored
Rollup merge of #82888 - Daggy1234:patch-1, r=joshtriplett
Grammar Fixes Found typo's in the array rustdoc. Pr'ed a fix!
2 parents 3908eec + 655155c commit 2d3ba78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/array/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn from_mut<T>(s: &mut T) -> &mut [T; 1] {
4242
/// without causing much metadata bloat.
4343
///
4444
/// The trait is marked unsafe in order to restrict implementors to fixed-size
45-
/// arrays. User of this trait can assume that implementors have the exact
45+
/// arrays. A user of this trait can assume that implementors have the exact
4646
/// layout in memory of a fixed size array (for example, for unsafe
4747
/// initialization).
4848
///
@@ -489,7 +489,7 @@ impl<T, const N: usize> [T; N] {
489489
/// ```
490490
///
491491
/// This method is particularly useful if combined with other methods, like
492-
/// [`map`](#method.map). This way, you can can avoid moving the original
492+
/// [`map`](#method.map). This way, you can avoid moving the original
493493
/// array if its elements are not `Copy`.
494494
///
495495
/// ```
@@ -564,7 +564,7 @@ where
564564
/// yields fewer than `N` items, `None` is returned and all already yielded
565565
/// items are dropped.
566566
///
567-
/// Since the iterator is passed as mutable reference and this function calls
567+
/// Since the iterator is passed as a mutable reference and this function calls
568568
/// `next` at most `N` times, the iterator can still be used afterwards to
569569
/// retrieve the remaining items.
570570
///

0 commit comments

Comments
 (0)