Skip to content

Commit 9269176

Browse files
authored
Update maybe_uninit.rs
1 parent 75380ea commit 9269176

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/core/src/mem/maybe_uninit.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ use crate::{fmt, intrinsics, ptr, slice};
256256
/// # Validity
257257
///
258258
/// A `MaybeUninit<T>` has no validity requirement – any sequence of bytes of the appropriate length,
259-
/// initialized to any value or uninitialized, are a valid value of `MaybeUninit<T>`. Equivalently,
260-
/// it is always sound to perform `transmute::<[MaybeUninit<u8>; size_of::<T>()], MaybeUninit<T>>(...)`.
259+
/// initialized to any value or uninitialized, are a valid value of `MaybeUninit<T>`.
261260
///
262261
/// Note that "round-tripping" via `MaybeUninit` does not always result in the original value.
263262
/// Concretely, given distinct `T` and `U` where `size_of::<T>() == size_of::<U>()`, the following

0 commit comments

Comments
 (0)