Skip to content

Commit

Permalink
langref: add merge error sets operator to operator table
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Jun 13, 2018
1 parent 8dd2479 commit 41e6c66
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion doc/langref.html.in
Expand Up @@ -1261,6 +1261,22 @@ const ptr = &x;
x.* == 1234</code></pre>
</td>
</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>
</div>
{#header_close#}
Expand All @@ -1269,7 +1285,7 @@ x.* == 1234</code></pre>
a!b
!x -x -%x ~x &amp;x ?x
x{} x.* x.?
! * / % ** *%
! * / % ** *% ||
+ - ++ +% -%
&lt;&lt; &gt;&gt;
&amp;
Expand Down

0 comments on commit 41e6c66

Please sign in to comment.