diff options
| author | Sebastian Dröge <sebastian@centricular.com> | 2021-05-05 12:31:38 +0300 |
|---|---|---|
| committer | Sebastian Dröge <sebastian@centricular.com> | 2021-05-05 12:31:38 +0300 |
| commit | 42405b4fa88d4a422bf26225aea03b7ce50a0ede (patch) | |
| tree | 0d746aeaec410fb1f2ad95c3bb846ac99dd7d915 | |
| parent | 2d11e257945c710d406e77903764ad4b7a52bda5 (diff) | |
| download | rust-42405b4fa88d4a422bf26225aea03b7ce50a0ede.tar.gz rust-42405b4fa88d4a422bf26225aea03b7ce50a0ede.zip | |
Fix typo in `MaybeUninit::array_assume_init` safety comment
And also add backticks around `MaybeUninit`.
| -rw-r--r-- | library/core/src/mem/maybe_uninit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs index f77acdd6180..10219201a40 100644 --- a/library/core/src/mem/maybe_uninit.rs +++ b/library/core/src/mem/maybe_uninit.rs @@ -870,7 +870,7 @@ impl<T> MaybeUninit<T> { // SAFETY: // * The caller guarantees that all elements of the array are initialized // * `MaybeUninit<T>` and T are guaranteed to have the same layout - // * MaybeUnint does not drop, so there are no double-frees + // * `MaybeUninit` does not drop, so there are no double-frees // And thus the conversion is safe unsafe { intrinsics::assert_inhabited::<[T; N]>(); |
