diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-03-08 20:09:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-08 20:09:07 +0100 |
| commit | 2d3ba785612a76d90d7c73eaca8a2d18923decc4 (patch) | |
| tree | b3d6d4e4abf63e61cdc940a983111b04e470130d | |
| parent | 3908eec60fe4f95bcde989651e98b2a3b3965a4b (diff) | |
| parent | 655155caa08af56d13bfa79753ff854634fd1417 (diff) | |
| download | rust-2d3ba785612a76d90d7c73eaca8a2d18923decc4.tar.gz rust-2d3ba785612a76d90d7c73eaca8a2d18923decc4.zip | |
Rollup merge of #82888 - Daggy1234:patch-1, r=joshtriplett
Grammar Fixes Found typo's in the array rustdoc. Pr'ed a fix!
| -rw-r--r-- | library/core/src/array/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs index 20251edf6f7..8f52985d1df 100644 --- a/library/core/src/array/mod.rs +++ b/library/core/src/array/mod.rs @@ -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). /// @@ -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`. /// /// ``` @@ -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. /// |
