Skip to content

Commit c8ca485

Browse files
scheiboVexu
authored andcommitted
langref: update to document --error-limit flag
1 parent 831bb81 commit c8ca485

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/langref.html.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5373,8 +5373,9 @@ test "fn reflection" {
53735373
gets assigned the same integer value.
53745374
</p>
53755375
<p>
5376-
The number of unique error values across the entire compilation should determine the size of the error set type.
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>.
5376+
The error set type defaults to a {#syntax#}u16{#endsyntax#}, though if the maximum number of distinct
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.
53785379
</p>
53795380
<p>
53805381
You can {#link|coerce|Type Coercion#} an error from a subset to a superset:

0 commit comments

Comments
 (0)