From 1a4f46ae7d185e14bc3ff76f078fc27cfff58e8f Mon Sep 17 00:00:00 2001 From: emekoi Date: Sat, 11 Apr 2020 01:01:37 -0500 Subject: [PATCH] add note about `@tagName` for non-exhaustive enums --- doc/langref.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index cd1905ebfb..6531323532 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -8167,7 +8167,7 @@ test "vector @splat" { {#header_open|@tagName#}
{#syntax#}@tagName(value: var) []const u8{#endsyntax#}

- Converts an enum value or union value to a slice of bytes representing the name. + Converts an enum value or union value to a slice of bytes representing the name. Not valid for unamed fields in non-exhaustive enums.

{#header_close#}