diff --git a/doc/langref.html.in b/doc/langref.html.in index 1ebc737b187366a58fbed68974a2720b0ad57cfc..f0ead9f6acb531aa21c81620d83a7a42dd240f4b 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#}