Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

langref: update to document --error-limit flag #17627

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions doc/langref.html.in
Original file line number Diff line number Diff line change
Expand Up @@ -5373,8 +5373,9 @@ test "fn reflection" {
gets assigned the same integer value.
</p>
<p>
The number of unique error values across the entire compilation should determine the size of the error set type.
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>.
The error set type defaults to a {#syntax#}u16{#endsyntax#}, though if the maximum number of distinct
error values is provided via the <kbd>--error-limit [num]</kbd> command line parameter an integer type
with the minimum number of bits required to represent all of the error values will be used.
</p>
<p>
You can {#link|coerce|Type Coercion#} an error from a subset to a superset:
Expand Down