diff --git a/doc/langref.html.in b/doc/langref.html.in index 991fd0c3e6..be055c3179 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -7814,7 +7814,7 @@ comptime { {#header_close#} {#header_open|@breakpoint#} -
{#syntax#}@breakpoint(){#endsyntax#}
+
{#syntax#}@breakpoint() void{#endsyntax#}

This function inserts a platform-specific debug trap instruction which causes debuggers to break there. @@ -7933,7 +7933,7 @@ pub const CallModifier = enum { {#header_close#} {#header_open|@cDefine#} -

{#syntax#}@cDefine(comptime name: []u8, value){#endsyntax#}
+
{#syntax#}@cDefine(comptime name: []u8, value) void{#endsyntax#}

This function can only occur inside {#syntax#}@cImport{#endsyntax#}.

@@ -7977,7 +7977,7 @@ pub const CallModifier = enum { {#see_also|Import from C Header File|@cInclude|@cDefine|@cUndef#} {#header_close#} {#header_open|@cInclude#} -
{#syntax#}@cInclude(comptime path: []u8){#endsyntax#}
+
{#syntax#}@cInclude(comptime path: []u8) void{#endsyntax#}

This function can only occur inside {#syntax#}@cImport{#endsyntax#}.

@@ -7989,7 +7989,7 @@ pub const CallModifier = enum { {#header_close#} {#header_open|@clz#} -
{#syntax#}@clz(operand: anytype){#endsyntax#}
+
{#syntax#}@clz(operand: anytype) anytype{#endsyntax#}

{#syntax#}@TypeOf(operand){#endsyntax#} must be an integer type or an integer vector type.

{#syntax#}operand{#endsyntax#} may be an {#link|integer|Integers#} or {#link|vector|Vectors#}.

@@ -8068,7 +8068,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val {#header_close#} {#header_open|@compileError#} -

{#syntax#}@compileError(comptime msg: []u8){#endsyntax#}
+
{#syntax#}@compileError(comptime msg: []u8) noreturn{#endsyntax#}

This function, when semantically analyzed, causes a compile error with the message {#syntax#}msg{#endsyntax#}. @@ -8081,7 +8081,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val {#header_close#} {#header_open|@compileLog#} -

{#syntax#}@compileLog(args: ...){#endsyntax#}
+
{#syntax#}@compileLog(args: ...) void{#endsyntax#}

This function prints the arguments passed to it at compile-time.

@@ -8139,7 +8139,7 @@ test "main" { {#header_close#} {#header_open|@ctz#} -
{#syntax#}@ctz(operand: anytype){#endsyntax#}
+
{#syntax#}@ctz(operand: anytype) anytype{#endsyntax#}

{#syntax#}@TypeOf(operand){#endsyntax#} must be an integer type or an integer vector type.

{#syntax#}operand{#endsyntax#} may be an {#link|integer|Integers#} or {#link|vector|Vectors#}.

@@ -8159,7 +8159,7 @@ test "main" { {#header_close#} {#header_open|@cUndef#} -

{#syntax#}@cUndef(comptime name: []u8){#endsyntax#}
+
{#syntax#}@cUndef(comptime name: []u8) void{#endsyntax#}

This function can only occur inside {#syntax#}@cImport{#endsyntax#}.

@@ -8370,7 +8370,7 @@ export fn @"A function name that is a complete sentence."() void {} {#header_close#} {#header_open|@fence#} -
{#syntax#}@fence(order: AtomicOrder){#endsyntax#}
+
{#syntax#}@fence(order: AtomicOrder) void{#endsyntax#}

The {#syntax#}fence{#endsyntax#} function is used to introduce happens-before edges between operations.

@@ -8622,7 +8622,7 @@ test "integer cast panic" { {#header_close#} {#header_open|@memcpy#} -
{#syntax#}@memcpy(noalias dest: [*]u8, noalias source: [*]const u8, byte_count: usize){#endsyntax#}
+
{#syntax#}@memcpy(noalias dest: [*]u8, noalias source: [*]const u8, byte_count: usize) void{#endsyntax#}

This function copies bytes from one region of memory to another. {#syntax#}dest{#endsyntax#} and {#syntax#}source{#endsyntax#} are both pointers and must not overlap. @@ -8641,7 +8641,7 @@ mem.copy(u8, dest[0..byte_count], source[0..byte_count]);{#endsyntax#} {#header_close#} {#header_open|@memset#} -

{#syntax#}@memset(dest: [*]u8, c: u8, byte_count: usize){#endsyntax#}
+
{#syntax#}@memset(dest: [*]u8, c: u8, byte_count: usize) void{#endsyntax#}

This function sets a region of memory to {#syntax#}c{#endsyntax#}. {#syntax#}dest{#endsyntax#} is a pointer.

@@ -8753,7 +8753,7 @@ test "@wasmMemoryGrow" { {#header_close#} {#header_open|@popCount#} -
{#syntax#}@popCount(operand: anytype){#endsyntax#}
+
{#syntax#}@popCount(operand: anytype) anytype{#endsyntax#}

{#syntax#}@TypeOf(operand){#endsyntax#} must be an integer type.

{#syntax#}operand{#endsyntax#} may be an {#link|integer|Integers#} or {#link|vector|Vectors#}.

Counts the number of bits set in an integer.

@@ -8767,7 +8767,7 @@ test "@wasmMemoryGrow" { {#header_close#} {#header_open|@prefetch#} -
{#syntax#}@prefetch(ptr: anytype, comptime options: std.builtin.PrefetchOptions){#endsyntax#}
+
{#syntax#}@prefetch(ptr: anytype, comptime options: std.builtin.PrefetchOptions) void{#endsyntax#}

This builtin tells the compiler to emit a prefetch instruction if supported by the target CPU. If the target CPU does not support the requested prefetch instruction, @@ -8881,21 +8881,21 @@ pub const PrefetchOptions = struct { {#header_close#} {#header_open|@setAlignStack#} -

{#syntax#}@setAlignStack(comptime alignment: u29){#endsyntax#}
+
{#syntax#}@setAlignStack(comptime alignment: u29) void{#endsyntax#}

Ensures that a function will have a stack alignment of at least {#syntax#}alignment{#endsyntax#} bytes.

{#header_close#} {#header_open|@setCold#} -
{#syntax#}@setCold(comptime is_cold: bool){#endsyntax#}
+
{#syntax#}@setCold(comptime is_cold: bool) void{#endsyntax#}

Tells the optimizer that a function is rarely called.

{#header_close#} {#header_open|@setEvalBranchQuota#} -
{#syntax#}@setEvalBranchQuota(comptime new_quota: u32){#endsyntax#}
+
{#syntax#}@setEvalBranchQuota(comptime new_quota: u32) void{#endsyntax#}

Changes the maximum number of backwards branches that compile-time code execution can use before giving up and making a compile error. @@ -8930,7 +8930,7 @@ test "foo" { {#header_close#} {#header_open|@setFloatMode#} -

{#syntax#}@setFloatMode(comptime mode: @import("std").builtin.FloatMode){#endsyntax#}
+
{#syntax#}@setFloatMode(comptime mode: @import("std").builtin.FloatMode) void{#endsyntax#}

Sets the floating point mode of the current scope. Possible values are: