diff --git a/doc/langref.html.in b/doc/langref.html.in index 3ed8d9d3ae..99248d4ec2 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1564,6 +1564,23 @@ const unwrapped = value catch 1234; unwrapped == 1234{#endsyntax#} + + Forwarding Error Unwrap +
{#syntax#}try a{#endsyntax#}
+ + + + + Equivalent to: +
{#syntax#}a catch |err| return err{#endsyntax#}
+ + +
{#syntax#}const value: anyerror!u32 = 5678;
+(try value) == 5678{#endsyntax#}
+ + Logical And
{#syntax#}a and b{#endsyntax#}
@@ -1845,7 +1862,7 @@ const B = error{Two};
{#syntax#}x() x[] x.y x.* x.?
 a!b
 x{}
-!x -x -%x ~x &x ?x
+!x -x -%x ~x &x ?x try
 * / % ** *% *| ||
 + - ++ +% -% +| -|
 << >> <<|
@@ -1853,6 +1870,7 @@ x{}
 == != < > <= >=
 and
 or
+return break continue
 = *= *%= *|= /= %= += +%= +|= -= -%= -|= <<= <<|= >>= &= ^= |={#endsyntax#}
{#header_close#} {#header_close#}