commit ff9f3275dede031cdbea67272f648bb91c79c574 (tree)
parent c9937f4a2b56fc14d6d64ca9a43cca0236c6d1ad
Author: Shawn Landden <shawn@git.icu>
Date: Wed, 18 Sep 2019 18:34:40 -0500
docs: clarify @clz and @ctz terminology to not be endian-specific.
This was brought up in IRC a few days ago.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/langref.html.in b/doc/langref.html.in
@@ -6650,7 +6650,7 @@ async fn func(y: *i32) void {
{#header_open|@clz#}
<pre>{#syntax#}@clz(comptime T: type, integer: T){#endsyntax#}</pre>
<p>
- This function counts the number of leading zeroes in {#syntax#}integer{#endsyntax#}.
+ This function counts the number of most-significant (leading in a big-Endian sense) zeroes in {#syntax#}integer{#endsyntax#}.
</p>
<p>
If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#},
@@ -6792,7 +6792,7 @@ test "main" {
{#header_open|@ctz#}
<pre>{#syntax#}@ctz(comptime T: type, integer: T){#endsyntax#}</pre>
<p>
- This function counts the number of trailing zeroes in {#syntax#}integer{#endsyntax#}.
+ This function counts the number of least-significant (trailing in a big-Endian sense) zeroes in {#syntax#}integer{#endsyntax#}.
</p>
<p>
If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#},