zig

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

commit 1a4f46ae7d185e14bc3ff76f078fc27cfff58e8f (tree)
parent a6e288d5fe51d5373fa995b5eec2dd2325c1ea9f
Author: emekoi <emekankurumeh@outlook.com>
Date:   Sat, 11 Apr 2020 01:01:37 -0500

add note about `@tagName` for non-exhaustive enums

Diffstat:
Mdoc/langref.html.in | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/langref.html.in b/doc/langref.html.in @@ -8167,7 +8167,7 @@ test "vector @splat" { {#header_open|@tagName#} <pre>{#syntax#}@tagName(value: var) []const u8{#endsyntax#}</pre> <p> - 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. </p> {#header_close#}