Skip to content

Commit c7bbfaf

Browse files
authored
Use "An important consequence" language
1 parent 4f2cc95 commit c7bbfaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/type-layout.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,9 @@ The alignments of each field, for the purpose of positioning fields, is the
517517
smaller of the specified alignment and the alignment of the field's type.
518518
Inter-field padding is guaranteed to be the minimum required in order to
519519
satisfy each field's (possibly altered) alignment (although note that, on its
520-
own, `packed` does not provide any guarantee about field ordering). An
521-
important special case is `#[repr(packed(1))]` (or `#[repr(packed)]`), which
522-
guarantees that no inter-field padding will be present.
520+
own, `packed` does not provide any guarantee about field ordering). An
521+
important consequence of these rules is that a type with `#[repr(packed(1))]`
522+
(or `#[repr(packed)]`) will have no inter-field padding.
523523

524524
The `align` and `packed` modifiers cannot be applied on the same type and a
525525
`packed` type cannot transitively contain another `align`ed type. `align` and

0 commit comments

Comments
 (0)