authorgravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2023-07-18 02:19:03+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-27 11:24:39-07:00
logc62bf068e53e1a2b06c7f0195a4b25467b587b42
tree76af2c9c86f2e47eb2a61a55b521629bdfb89604
parentfcdb7d9e4706179f65aa7e206f1d99c61724d722

Change `@fabs` to `@abs` in langref


1 files changed, 7 insertions(+), 4 deletions(-)

doc/langref.html.in+7-4
......@@ -9421,14 +9421,17 @@ fn doTheTest() !void {
94219421 Supports {#link|Floats#} and {#link|Vectors#} of floats.
94229422 </p>
94239423 {#header_close#}
9424 {#header_open|@fabs#}
9425 <pre>{#syntax#}@fabs(value: anytype) @TypeOf(value){#endsyntax#}</pre>
9424 {#header_open|@abs#}
9425 <pre>{#syntax#}@abs(value: anytype) anytype{#endsyntax#}</pre>
94269426 <p>
9427 Returns the absolute value of a floating point number. Uses a dedicated hardware instruction
9427 Returns the absolute value of an integer or a floating point number. Uses a dedicated hardware instruction
94289428 when available.
9429
9430 The return type is always an unsigned integer of the same bit width as the operand if the operand is an integer.
9431 Unsigned integer operands are supported. The builtin cannot overflow for signed integer operands.
94299432 </p>
94309433 <p>
9431 Supports {#link|Floats#} and {#link|Vectors#} of floats.
9434 Supports {#link|Floats#}, {#link|Integers#} and {#link|Vectors#} of floats or integers.
94329435 </p>
94339436 {#header_close#}
94349437 {#header_open|@floor#}