diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-04-11 16:43:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-11 16:43:19 -0400 |
| commit | eefe6956fde0adc2b0b56fdb6d22e06e2543219e (patch) | |
| tree | 6932a6729486d4722646853dea75edb7521312f0 /doc | |
| parent | de08d283da8f8f4da8dfaee61c0bdd85c813c938 (diff) | |
| download | zig-eefe6956fde0adc2b0b56fdb6d22e06e2543219e.tar.gz zig-eefe6956fde0adc2b0b56fdb6d22e06e2543219e.zip | |
clarify what "not valid" means
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 6531323532..bb824076d6 100644 --- 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. Not valid for unamed fields in non-exhaustive enums. + Converts an enum value or union value to a slice of bytes representing the name.</p><p>If the enum is non-exhaustive and the tag value does not map to a name, it invokes safety-checked {#link|Undefined Behavior#}. </p> {#header_close#} |
