Skip to content

Commit 2dcc02e

Browse files
Clarify what T refers to
1 parent 440b8fd commit 2dcc02e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/type-layout.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ aligned to 32 bits.
5858

5959
For the primitive numeric types (`u8`, `i8`, `u16`, `i16`, `u32`, `i32`, `u64`,
6060
`i64`, `u128`, `i128`, `usize`, `isize`, `f32`, and `f64`), every bit pattern
61-
represents a valid instance of the type (in other words,
62-
`transmute::<[u8; size_of::<T>()], T>(...)` is always sound). For the primitive
63-
numeric types and also for `bool` and `char`, every byte is guaranteed to be
64-
initialized (in other words, `transmute::<T, [u8; size_of::<T>()]>(...)` is always
65-
sound).
61+
represents a valid instance of the type (in other words, for every primitive numeric
62+
type, `T`, `transmute::<[u8; size_of::<T>()], T>(...)` is always sound). For the
63+
primitive numeric types and also for `bool` and `char`, every byte is guaranteed to be
64+
initialized (in other words, for every such type, `T`,
65+
`transmute::<T, [u8; size_of::<T>()]>(...)` is always sound).
6666

6767
## Pointers and References Layout
6868

0 commit comments

Comments
 (0)