Commit 1766bd8a08

Michael Dusan <michael.dusan@gmail.com>
2019-07-11 23:40:54
doc clarify struct size and ABI-alignment
1 parent c7a9769
Changed files (1)
doc/langref.html.in
@@ -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,