authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-06-13 11:09:41-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-06-13 11:09:41-04:00
log41e6c664d8b751b81effd2341cf1bd5950c40d8c
tree55f1ee0e657a05d8d2804218badfcdc285b1c505
parent8dd24796c43b5241a5dcd5508e4be00483ebc25b

langref: add merge error sets operator to operator table


1 files changed, 17 insertions(+), 1 deletions(-)

doc/langref.html.in+17-1
......@@ -1261,6 +1261,22 @@ const ptr = &amp;x;
12611261x.* == 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};
1276const 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>
12691285a!b
12701286!x -x -%x ~x &amp;x ?x
12711287x{} x.* x.?
1272! * / % ** *%
1288! * / % ** *% ||
12731289+ - ++ +% -%
12741290&lt;&lt; &gt;&gt;
12751291&amp;