Skip to content

Commit 2860ec5

Browse files
Rollup merge of rust-lang#84949 - sdroege:maybe-unint-typo, r=m-ou-se
Fix typo in `MaybeUninit::array_assume_init` safety comment And also add backticks around `MaybeUninit`.
2 parents 174b6a0 + 42405b4 commit 2860ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/maybe_uninit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ impl<T> MaybeUninit<T> {
870870
// SAFETY:
871871
// * The caller guarantees that all elements of the array are initialized
872872
// * `MaybeUninit<T>` and T are guaranteed to have the same layout
873-
// * MaybeUnint does not drop, so there are no double-frees
873+
// * `MaybeUninit` does not drop, so there are no double-frees
874874
// And thus the conversion is safe
875875
unsafe {
876876
intrinsics::assert_inhabited::<[T; N]>();

0 commit comments

Comments
 (0)