mirror of
https://github.com/ziglang/zig.git
synced 2025-02-05 20:30:37 +00:00
doc clarify struct size and ABI-alignment
This commit is contained in:
parent
c7a976972f
commit
1766bd8a08
@ -2132,8 +2132,8 @@ test "slice widening" {
|
||||
{#header_open|struct#}
|
||||
{#code_begin|test|structs#}
|
||||
// Declare a struct.
|
||||
// Zig gives no guarantees about the order of fields and whether or
|
||||
// not there will be padding.
|
||||
// Zig gives no guarantees about the order of fields and the size of
|
||||
// the struct but the fields are guaranteed to be ABI-aligned.
|
||||
const Point = struct {
|
||||
x: f32,
|
||||
y: f32,
|
||||
|
Loading…
Reference in New Issue
Block a user