From 1766bd8a0806ad654ee0eadfcb84acf7be2145ff Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Thu, 11 Jul 2019 17:40:54 -0400 Subject: [PATCH] doc clarify struct size and ABI-alignment --- doc/langref.html.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 5437dcc80..5d3e1ec9b 100644 --- a/doc/langref.html.in +++ b/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,