@@ -42,7 +42,7 @@ pub fn from_mut<T>(s: &mut T) -> &mut [T; 1] {
42
42
/// without causing much metadata bloat.
43
43
///
44
44
/// 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
46
46
/// layout in memory of a fixed size array (for example, for unsafe
47
47
/// initialization).
48
48
///
@@ -382,7 +382,7 @@ impl<T: Ord, const N: usize> Ord for [T; N] {
382
382
383
383
// The Default impls cannot be done with const generics because `[T; 0]` doesn't
384
384
// require Default to be implemented, and having different impl blocks for
385
- // different numbers isn 't supported yet.
385
+ // different numbers aren 't supported yet.
386
386
387
387
macro_rules! array_impl_default {
388
388
{ $n: expr, $t: ident $( $ts: ident) * } => {
@@ -489,7 +489,7 @@ impl<T, const N: usize> [T; N] {
489
489
/// ```
490
490
///
491
491
/// 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
493
493
/// array if its elements are not `Copy`.
494
494
///
495
495
/// ```
@@ -564,7 +564,7 @@ where
564
564
/// yields fewer than `N` items, `None` is returned and all already yielded
565
565
/// items are dropped.
566
566
///
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
568
568
/// `next` at most `N` times, the iterator can still be used afterwards to
569
569
/// retrieve the remaining items.
570
570
///
0 commit comments