Skip to content

Commit 48261cd

Browse files
authored
Update maybe_uninit.rs
1 parent fe753c2 commit 48261cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/maybe_uninit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ use crate::{fmt, intrinsics, ptr, slice};
275275
/// ```
276276
///
277277
/// If the representation of `t` contains initialized bytes at byte offsets where `U` contains padding bytes, these
278-
/// may not be preserved in `MaybeUninit<U>`. Interpreting the representation of `u` at type `T` again (i.e., `transmute(u)` above) may thus
278+
/// may not be preserved in `MaybeUninit<U>`. Transmuting `u` back to `T` (i.e., `transmute(u)` above) may thus
279279
/// be undefined behavior or yield a value different from `t` due to those bytes being lost. This is an active area of discussion, and this code
280280
/// may become sound in the future.
281281
///

0 commit comments

Comments
 (0)