Skip to content

Commit 41e6c66

Browse files
committedJun 13, 2018
langref: add merge error sets operator to operator table
·
0.15.20.3.0
1 parent 8dd2479 commit 41e6c66

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed
 

‎doc/langref.html.in‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,22 @@ const ptr = &x;
12611261
x.* == 1234</code></pre>
12621262
</td>
12631263
</tr>
1264+
<tr>
1265+
<td><pre><code class="zig">a || b<code></pre></td>
1266+
<td>
1267+
<ul>
1268+
<li>{#link|Error Set Type#}</li>
1269+
</ul>
1270+
</td>
1271+
<td>
1272+
{#link|Merging Error Sets#}
1273+
</td>
1274+
<td>
1275+
<pre><code class="zig">const A = error{One};
1276+
const B = error{Two};
1277+
(A || B) == error{One, Two}</code></pre>
1278+
</td>
1279+
</tr>
12641280
</table>
12651281
</div>
12661282
{#header_close#}
@@ -1269,7 +1285,7 @@ x.* == 1234</code></pre>
12691285
a!b
12701286
!x -x -%x ~x &amp;x ?x
12711287
x{} x.* x.?
1272-
! * / % ** *%
1288+
! * / % ** *% ||
12731289
+ - ++ +% -%
12741290
&lt;&lt; &gt;&gt;
12751291
&amp;

0 commit comments

Comments
 (0)
Please sign in to comment.