authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-07-05 14:10:50-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-07-05 14:10:50-04:00
log273c2b5c25006bcb5d759da61ad5cbd247896050
tree9f1cbb5c289992a25d6e36a321e54cb17415ea51
parent3ad9349f09e5afdacd64b8ab257ae1d09859f48a
signaturelock-open Commit is signed but in an unrecognized format.

docs: mention `@unionInit` in the union section


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

doc/langref.html.in+3
......@@ -2743,6 +2743,9 @@ test "simple union" {
27432743 <p>
27442744 In order to use {#link|switch#} with a union, it must be a {#link|Tagged union#}.
27452745 </p>
2746 <p>
2747 To initialize a union when the tag is a {#link|comptime#}-known name, see {#link|@unionInit#}.
2748 </p>
27462749
27472750 {#header_open|Tagged union#}
27482751 <p>Unions can be declared with an enum tag type.