Commit 273c2b5c25

Andrew Kelley <andrew@ziglang.org>
2019-07-05 20:10:50
docs: mention `@unionInit` in the union section
1 parent 3ad9349
Changed files (1)
doc/langref.html.in
@@ -2743,6 +2743,9 @@ test "simple union" {
       <p>
       In order to use {#link|switch#} with a union, it must be a {#link|Tagged union#}.
       </p>
+      <p>
+      To initialize a union when the tag is a {#link|comptime#}-known name, see {#link|@unionInit#}.
+      </p>
 
       {#header_open|Tagged union#}
       <p>Unions can be declared with an enum tag type.