From 273c2b5c25006bcb5d759da61ad5cbd247896050 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 5 Jul 2019 14:10:50 -0400 Subject: [PATCH] docs: mention `@unionInit` in the union section --- doc/langref.html.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/langref.html.in b/doc/langref.html.in index 28d8745a81..2d853e8611 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -2743,6 +2743,9 @@ test "simple union" {

In order to use {#link|switch#} with a union, it must be a {#link|Tagged union#}.

+

+ To initialize a union when the tag is a {#link|comptime#}-known name, see {#link|@unionInit#}. +

{#header_open|Tagged union#}

Unions can be declared with an enum tag type.