From c01b9b1ab5bb0e9cd6eb1792cd20a643907008ad Mon Sep 17 00:00:00 2001 From: FnControlOption Date: Fri, 6 Mar 2026 22:33:28 +0100 Subject: [PATCH] langref: replace `std.meta.Int` with `@Int` --- doc/langref.html.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 85ec580b4dfc039facf494eb7fa460baf1edad6e..7118d01c9173a0544b8ba4030321125f49a62863 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -4866,7 +4866,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val {#header_close#} {#header_open|@errorFromInt#} -
{#syntax#}@errorFromInt(value: std.meta.Int(.unsigned, @bitSizeOf(anyerror))) anyerror{#endsyntax#}
+
{#syntax#}@errorFromInt(value: @Int(.unsigned, @bitSizeOf(anyerror))) anyerror{#endsyntax#}

Converts from the integer representation of an error into {#link|The Global Error Set#} type.

@@ -5107,7 +5107,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val {#header_close#} {#header_open|@intFromError#} -
{#syntax#}@intFromError(err: anytype) std.meta.Int(.unsigned, @bitSizeOf(anyerror)){#endsyntax#}
+
{#syntax#}@intFromError(err: anytype) @Int(.unsigned, @bitSizeOf(anyerror)){#endsyntax#}

Supports the following types:

-- 2.54.0