We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78bbc5b + 264aec4 commit 3c5c1c2Copy full SHA for 3c5c1c2
1 file changed
src/type-layout.md
@@ -198,7 +198,7 @@ r[layout.repr.c.struct]
198
#### `#[repr(C)]` Structs
199
200
r[layout.repr.c.struct.align]
201
-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 one if there are no fields.
202
203
r[layout.repr.c.struct.size-field-offset]
204
The size and offset of fields is determined by the following algorithm.
0 commit comments