Skip to content

Commit 61c6349

Browse files
joshlfRalfJung
andauthored
Update src/type-layout.md
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 2f82b7f commit 61c6349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/type-layout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ a valid `u8`. A byte at any offset in a reference or pointer type may not be a
6464
valid `u8` (the semantics of transmuting a reference or pointer to a non-pointer
6565
type is currently undecided).
6666

67-
For the primitive numeric types and also for `bool` and `char`, every byte is
67+
For `bool` and `char`, every byte is
6868
guaranteed to be initialized (in other words, for every such type, `T`,
69-
`transmute::<T, [u8; size_of::<T>()]>(...)` is always sound).
69+
`transmute::<T, [u8; size_of::<T>()]>(...)` is always sound -- but the inverse is not).
7070

7171
## Pointers and References Layout
7272

0 commit comments

Comments
 (0)