From 5311916928ac627b86549099ac76f82f151fb662 Mon Sep 17 00:00:00 2001 From: mlugg Date: Sun, 25 Jun 2023 02:23:33 +0100 Subject: [PATCH] langref: neaten up @errSetCast example --- doc/langref.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 1ebc737b18..f0ead9f6ac 100644 --- a/doc/langref.html.in +++ b/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#}