Commit 5311916928

mlugg <mlugg@mlugg.co.uk>
2023-06-25 03:23:33
langref: neaten up @errSetCast example
1 parent 3f04231
Changed files (1)
doc/langref.html.in
@@ -10267,7 +10267,7 @@ pub fn main() void {
     foo(Set1.B);
 }
 fn foo(set1: Set1) void {
-    const x = @as(Set2, @errSetCast(set1));
+    const x: Set2 = @errSetCast(set1);
     std.debug.print("value: {}\n", .{x});
 }
       {#code_end#}