Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/type-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ r[layout.repr.c.struct]
#### `#[repr(C)]` Structs

r[layout.repr.c.struct.align]
The alignment of the struct is the alignment of the most-aligned field in it.
The alignment of the struct is the alignment of the most-aligned field in it, or 1 if there are no fields.

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