aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2019-07-11 17:40:54 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-07-11 20:36:30 -0400
commit1766bd8a0806ad654ee0eadfcb84acf7be2145ff (patch)
treea2dc61349e9d05e16705e42e6befa12366b8fa0b /doc
parentc7a976972fe9bb59cff12d75f9238469b13ba183 (diff)
downloadzig-1766bd8a0806ad654ee0eadfcb84acf7be2145ff.tar.gz
zig-1766bd8a0806ad654ee0eadfcb84acf7be2145ff.zip
doc clarify struct size and ABI-alignment
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.html.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in
index 5437dcc801..5d3e1ec9b3 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,