Skip to content

Commit 264aec4

Browse files
Integrate layout.repr.c.struct.align-empty into layout.repr.c.struct.align
Also write out "1" as "one".
1 parent 8d2c69a commit 264aec4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/type-layout.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,7 @@ r[layout.repr.c.struct]
198198
#### `#[repr(C)]` Structs
199199

200200
r[layout.repr.c.struct.align]
201-
The alignment of the struct is the alignment of the most-aligned field in it.
202-
203-
r[layout.repr.c.struct.align-empty]
204-
The alignment of a struct with no fields is 1.
201+
The alignment of the struct is the alignment of the most-aligned field in it, or one if there are no fields.
205202

206203
r[layout.repr.c.struct.size-field-offset]
207204
The size and offset of fields is determined by the following algorithm.

0 commit comments

Comments
 (0)