aboutsummaryrefslogtreecommitdiff
path: root/doc/langref.html.in
diff options
context:
space:
mode:
authorShawn Landden <shawn@git.icu>2019-09-18 18:34:40 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-09-19 11:47:02 -0400
commitff9f3275dede031cdbea67272f648bb91c79c574 (patch)
treeb4ba108d48d289034bb791cc13c1213569013dc3 /doc/langref.html.in
parentc9937f4a2b56fc14d6d64ca9a43cca0236c6d1ad (diff)
downloadzig-ff9f3275dede031cdbea67272f648bb91c79c574.tar.gz
zig-ff9f3275dede031cdbea67272f648bb91c79c574.zip
docs: clarify @clz and @ctz terminology to not be endian-specific.
This was brought up in IRC a few days ago.
Diffstat (limited to 'doc/langref.html.in')
-rw-r--r--doc/langref.html.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in
index 1158135dab..d9750a6635 100644
--- 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#},