Commit 41e6c664d8

Andrew Kelley <superjoe30@gmail.com>
2018-06-13 17:09:41
langref: add merge error sets operator to operator table
1 parent 8dd2479
Changed files (1)
doc/langref.html.in
@@ -1261,6 +1261,22 @@ const ptr = &amp;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#}
@@ -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;