Update type-layout.md

This commit is contained in:
Joshua Liebow-Feeser 2023-08-10 21:57:09 -07:00 committed by GitHub
parent 510e75c2a1
commit e2385f92ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ For the primitive numeric types (`u8`, `i8`, `u16`, `i16`, `u32`, `i32`, `u64`,
represents a valid instance of the type (in other words,
`transmute::<[u8; size_of::<T>()], T>(...)` is always sound). For the primitive
numeric types and also for `bool` and `char`, every byte is guaranteed to be
initialized (in other words, `transmute::<T, [u8; size_of::<T>()]>(...) is always
initialized (in other words, `transmute::<T, [u8; size_of::<T>()]>(...)` is always
sound).
## Pointers and References Layout