authorgravatar for kjs@scheibo.comKirk Scheibelhut <kjs@scheibo.com> 2023-10-19 14:32:44-07:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-10-22 14:29:26+03:00
loged82e4f7ac057286444135dda79fb7c6a579573a
tree22b091e12e5cbeacee5ce0b74cc51e531fd99cc6
parent9d9e22e716a4b6de9a26f2553ea5c980efc79d4a

langref: update to document --error-limit flag


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

doc/langref.html.in+3-2
...@@ -5373,8 +5373,9 @@ test "fn reflection" {...@@ -5373,8 +5373,9 @@ test "fn reflection" {
5373 gets assigned the same integer value.5373 gets assigned the same integer value.
5374 </p>5374 </p>
5375 <p>5375 <p>
5376 The number of unique error values across the entire compilation should determine the size of the error set type.5376 The error set type defaults to a {#syntax#}u16{#endsyntax#}, though if the maximum number of distinct
5377 However right now it is hard coded to be a {#syntax#}u16{#endsyntax#}. See <a href="https://github.com/ziglang/zig/issues/786">#786</a>.5377 error values is provided via the <kbd>--error-limit [num]</kbd> command line parameter an integer type
5378 with the minimum number of bits required to represent all of the error values will be used.
5378 </p>5379 </p>
5379 <p>5380 <p>
5380 You can {#link|coerce|Type Coercion#} an error from a subset to a superset:5381 You can {#link|coerce|Type Coercion#} an error from a subset to a superset: