zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 273c2b5c25006bcb5d759da61ad5cbd247896050 (tree)
parent 3ad9349f09e5afdacd64b8ab257ae1d09859f48a
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri,  5 Jul 2019 14:10:50 -0400

docs: mention `@unionInit` in the union section

Diffstat:
Mdoc/langref.html.in | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/doc/langref.html.in b/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.