diff options
| author | Kirk Scheibelhut <kjs@scheibo.com> | 2022-05-10 12:15:31 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-05-10 17:28:44 -0400 |
| commit | 67c4b16d6e27f1d81e2e2f837bd53d958b9baa33 (patch) | |
| tree | 98def21f4464cdf2ca530b5663a5cbd9470262d3 /doc | |
| parent | aaf4011c2caaf445fbf8cd2e27d6ce80f2bc115d (diff) | |
| download | zig-67c4b16d6e27f1d81e2e2f837bd53d958b9baa33.tar.gz zig-67c4b16d6e27f1d81e2e2f837bd53d958b9baa33.zip | |
docs: T.bit_count -> @typeInfo(T).Int.bits
bit_count was removed in #6246
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index d81661ecd3..f5d3c0b7c1 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -9220,8 +9220,8 @@ test "@setRuntimeSafety" { any bits that disagree with the resultant sign bit are shifted out. </p> <p> - The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(T.bit_count){#endsyntax#} bits. - This is because {#syntax#}shift_amt >= T.bit_count{#endsyntax#} is undefined behavior. + The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(T).Int.bits){#endsyntax#} bits. + This is because {#syntax#}shift_amt >= @typeInfo(T).Int.bits{#endsyntax#} is undefined behavior. </p> {#see_also|@shrExact|@shlWithOverflow#} {#header_close#} @@ -9234,8 +9234,8 @@ test "@setRuntimeSafety" { If no overflow or underflow occurs, returns {#syntax#}false{#endsyntax#}. </p> <p> - The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(T.bit_count){#endsyntax#} bits. - This is because {#syntax#}shift_amt >= T.bit_count{#endsyntax#} is undefined behavior. + The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(T).Int.bits){#endsyntax#} bits. + This is because {#syntax#}shift_amt >= @typeInfo(T).Int.bits{#endsyntax#} is undefined behavior. </p> {#see_also|@shlExact|@shrExact#} {#header_close#} @@ -9247,8 +9247,8 @@ test "@setRuntimeSafety" { that the shift will not shift any 1 bits out. </p> <p> - The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(T.bit_count){#endsyntax#} bits. - This is because {#syntax#}shift_amt >= T.bit_count{#endsyntax#} is undefined behavior. + The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(T).Int.bits){#endsyntax#} bits. + This is because {#syntax#}shift_amt >= @typeInfo(T).Int.bits{#endsyntax#} is undefined behavior. </p> {#see_also|@shlExact|@shlWithOverflow#} {#header_close#} |
