authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-05 19:45:18-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-05 19:45:18-07:00
log8c631ebfeeed9b2338b3f4a280f6679c527f487b
tree7596c2eb8233853c8412abcab72f42598da6c1a3
parentb074299124e1403d48d9904c6ab855b7c72df9e0

langref: update for new packed union rules


1 files changed, 1 insertions(+), 0 deletions(-)

doc/langref.html.in+1
...@@ -2496,6 +2496,7 @@ or...@@ -2496,6 +2496,7 @@ or
2496 {#header_open|packed union#}2496 {#header_open|packed union#}
2497 <p>A {#syntax#}packed union{#endsyntax#} has well-defined in-memory layout and is eligible2497 <p>A {#syntax#}packed union{#endsyntax#} has well-defined in-memory layout and is eligible
2498 to be in a {#link|packed struct#}.</p>2498 to be in a {#link|packed struct#}.</p>
2499 <p>All fields in a packed union must have the same {#link|@bitSizeOf#}.</p>
2499 {#header_close#}2500 {#header_close#}
25002501
2501 {#header_open|Anonymous Union Literals#}2502 {#header_open|Anonymous Union Literals#}