Skip to content

Commit 4f2cc95

Browse files
authored
Update type-layout.md
1 parent d46db14 commit 4f2cc95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ assert_eq!(std::mem::size_of::<Enum16>(), 4);
501501

502502
The `align` and `packed` modifiers can be used to respectively raise or lower
503503
the alignment of `struct`s and `union`s. `packed` may also alter the padding
504-
between fields.
504+
between fields (although it will not alter the padding inside of any field).
505505

506506
The alignment is specified as an integer parameter in the form of
507507
`#[repr(align(x))]` or `#[repr(packed(x))]`. The alignment value must be a

0 commit comments

Comments
 (0)