authorgravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2024-10-03 20:37:36+09:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2024-10-17 11:51:06+03:00
log816dfca0b579440604eb871c6a76a3edd250240f
tree2634a4ec3e86affda15d880d2f49e1d075c1e96f
parentd38ed893c6ece24e52b2e0a1f8d75f6a912686d7

langref: update builtin variadic functions

Documentation was outdated.

1 files changed, 8 insertions(+), 8 deletions(-)

doc/langref.html.in+8-8
......@@ -4623,7 +4623,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
46234623 {#header_close#}
46244624
46254625 {#header_open|@compileLog#}
4626 <pre>{#syntax#}@compileLog(args: ...) void{#endsyntax#}</pre>
4626 <pre>{#syntax#}@compileLog(...) void{#endsyntax#}</pre>
46274627 <p>
46284628 This function prints the arguments passed to it at compile-time.
46294629 </p>
......@@ -5061,12 +5061,12 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
50615061 {#header_close#}
50625062
50635063 {#header_open|@max#}
5064 <pre>{#syntax#}@max(a: T, b: T) T{#endsyntax#}</pre>
5064 <pre>{#syntax#}@max(...) T{#endsyntax#}</pre>
50655065 <p>
5066 Returns the maximum value of {#syntax#}a{#endsyntax#} and {#syntax#}b{#endsyntax#}. This builtin accepts integers, floats, and vectors of either. In the latter case, the operation is performed element wise.
5066 Takes two or more arguments and returns the biggest value included (the maximum). This builtin accepts integers, floats, and vectors of either. In the latter case, the operation is performed element wise.
50675067 </p>
50685068 <p>
5069 NaNs are handled as follows: if one of the operands of a (pairwise) operation is NaN, the other operand is returned. If both operands are NaN, NaN is returned.
5069 NaNs are handled as follows: return the biggest non-NaN value included. If all operands are NaN, return NaN.
50705070 </p>
50715071 {#see_also|@min|Vectors#}
50725072 {#header_close#}
......@@ -5100,12 +5100,12 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
51005100 {#header_close#}
51015101
51025102 {#header_open|@min#}
5103 <pre>{#syntax#}@min(a: T, b: T) T{#endsyntax#}</pre>
5103 <pre>{#syntax#}@min(...) T{#endsyntax#}</pre>
51045104 <p>
5105 Returns the minimum value of {#syntax#}a{#endsyntax#} and {#syntax#}b{#endsyntax#}. This builtin accepts integers, floats, and vectors of either. In the latter case, the operation is performed element wise.
5105 Takes two or more arguments and returns the smallest value included (the minimum). This builtin accepts integers, floats, and vectors of either. In the latter case, the operation is performed element wise.
51065106 </p>
51075107 <p>
5108 NaNs are handled as follows: if one of the operands of a (pairwise) operation is NaN, the other operand is returned. If both operands are NaN, NaN is returned.
5108 NaNs are handled as follows: return the smallest non-NaN value included. If all operands are NaN, return NaN.
51095109 </p>
51105110 {#see_also|@max|Vectors#}
51115111 {#header_close#}
......@@ -5788,7 +5788,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
57885788 {#header_open|@TypeOf#}
57895789 <pre>{#syntax#}@TypeOf(...) type{#endsyntax#}</pre>
57905790 <p>
5791 {#syntax#}@TypeOf{#endsyntax#} is a special builtin function that takes any (nonzero) number of expressions
5791 {#syntax#}@TypeOf{#endsyntax#} is a special builtin function that takes any (non-zero) number of expressions
57925792 as parameters and returns the type of the result, using {#link|Peer Type Resolution#}.
57935793 </p>
57945794 <p>