From 41e6c664d8b751b81effd2341cf1bd5950c40d8c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 13 Jun 2018 11:09:41 -0400 Subject: [PATCH] langref: add merge error sets operator to operator table --- doc/langref.html.in | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 290ed77e7d..1fccd6e351 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1261,6 +1261,22 @@ const ptr = &x; x.* == 1234 + +
a || b
+ +
    +
  • {#link|Error Set Type#}
  • +
+ + + {#link|Merging Error Sets#} + + +
const A = error{One};
+const B = error{Two};
+(A || B) == error{One, Two}
+ + {#header_close#} @@ -1269,7 +1285,7 @@ x.* == 1234
a!b !x -x -%x ~x &x ?x x{} x.* x.? -! * / % ** *% +! * / % ** *% || + - ++ +% -% << >> &