authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-11 16:43:19-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-04-11 16:43:19-04:00
logeefe6956fde0adc2b0b56fdb6d22e06e2543219e
tree6932a6729486d4722646853dea75edb7521312f0
parentde08d283da8f8f4da8dfaee61c0bdd85c813c938
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

clarify what "not valid" means


1 files changed, 1 insertions(+), 1 deletions(-)

doc/langref.html.in+1-1
...@@ -8167,7 +8167,7 @@ test "vector @splat" {...@@ -8167,7 +8167,7 @@ test "vector @splat" {
8167 {#header_open|@tagName#}8167 {#header_open|@tagName#}
8168 <pre>{#syntax#}@tagName(value: var) []const u8{#endsyntax#}</pre>8168 <pre>{#syntax#}@tagName(value: var) []const u8{#endsyntax#}</pre>
8169 <p>8169 <p>
8170 Converts an enum value or union value to a slice of bytes representing the name. Not valid for unamed fields in non-exhaustive enums.8170 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#}.
8171 </p>8171 </p>
8172 {#header_close#}8172 {#header_close#}
81738173