Commit 8c631ebfee

Andrew Kelley <andrew@ziglang.org>
2025-09-06 04:45:18
langref: update for new packed union rules
1 parent b074299
Changed files (1)
doc/langref.html.in
@@ -2496,6 +2496,7 @@ or
       {#header_open|packed union#}
       <p>A {#syntax#}packed union{#endsyntax#} has well-defined in-memory layout and is eligible
           to be in a {#link|packed struct#}.</p>
+      <p>All fields in a packed union must have the same {#link|@bitSizeOf#}.</p>
       {#header_close#}
 
       {#header_open|Anonymous Union Literals#}