mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
langref/errorset: Replace subset description with union
The previous language using subsets was really just stating a couple of the properties of the union of a group of sets, and with a minor error at that.
This commit is contained in:
parent
43e52ec5c5
commit
bf7bc4ff01
1 changed files with 1 additions and 2 deletions
|
|
@ -2937,8 +2937,7 @@ or
|
|||
</p>
|
||||
{#header_open|The Global Error Set#}
|
||||
<p>{#syntax#}anyerror{#endsyntax#} refers to the global error set.
|
||||
This is the error set that contains all errors in the entire compilation unit.
|
||||
It is a superset of all other error sets and a subset of none of them.
|
||||
This is the error set that contains all errors in the entire compilation unit, i.e. it is the union of all other error sets.
|
||||
</p>
|
||||
<p>
|
||||
You can {#link|coerce|Type Coercion#} any error set to the global one, and you can explicitly
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue