From 3c6c317424280c5b21210ad6d8f8864b0e27f366 Mon Sep 17 00:00:00 2001 From: yvt Date: Tue, 3 Dec 2019 19:56:50 +0900 Subject: [PATCH] Update the docs to use `@as` --- doc/langref.html.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index ab1f3e89f9..446a201bbe 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1019,7 +1019,7 @@ a +%= b{#endsyntax#}
{#syntax#}u32(std.math.maxInt(u32)) +% 1 == 0{#endsyntax#}
+ {#syntax#}@as(u32, std.math.maxInt(u32)) +% 1 == 0{#endsyntax#}
{#syntax#}u32(0) -% 1 == std.math.maxInt(u32){#endsyntax#}
+ {#syntax#}@as(u32, 0) -% 1 == std.math.maxInt(u32){#endsyntax#}
{#syntax#}-%i32(std.math.minInt(i32)) == std.math.minInt(i32){#endsyntax#}
+ {#syntax#}-%@as(i32, std.math.minInt(i32)) == std.math.minInt(i32){#endsyntax#}
{#syntax#}u8(200) *% 2 == 144{#endsyntax#}
+ {#syntax#}@as(u8, 200) *% 2 == 144{#endsyntax#}
{#syntax#}~u8(0b10101111) == 0b01010000{#endsyntax#}
+ {#syntax#}~@as(u8, 0b10101111) == 0b01010000{#endsyntax#}