mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
clarify what "not valid" means
This commit is contained in:
parent
de08d283da
commit
eefe6956fd
@ -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#}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user