langref: add merge error sets operator to operator table
This commit is contained in:
parent
8dd24796c4
commit
41e6c664d8
@ -1261,6 +1261,22 @@ const ptr = &x;
|
|||||||
x.* == 1234</code></pre>
|
x.* == 1234</code></pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><pre><code class="zig">a || b<code></pre></td>
|
||||||
|
<td>
|
||||||
|
<ul>
|
||||||
|
<li>{#link|Error Set Type#}</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{#link|Merging Error Sets#}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<pre><code class="zig">const A = error{One};
|
||||||
|
const B = error{Two};
|
||||||
|
(A || B) == error{One, Two}</code></pre>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{#header_close#}
|
{#header_close#}
|
||||||
@ -1269,7 +1285,7 @@ x.* == 1234</code></pre>
|
|||||||
a!b
|
a!b
|
||||||
!x -x -%x ~x &x ?x
|
!x -x -%x ~x &x ?x
|
||||||
x{} x.* x.?
|
x{} x.* x.?
|
||||||
! * / % ** *%
|
! * / % ** *% ||
|
||||||
+ - ++ +% -%
|
+ - ++ +% -%
|
||||||
<< >>
|
<< >>
|
||||||
&
|
&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user