mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
clarify @bitSizeOf behavior
This commit is contained in:
parent
3dcbd489eb
commit
3b8c4f07a4
@ -7081,7 +7081,8 @@ fn func(y: *i32) void {
|
||||
{#header_open|@bitSizeOf#}
|
||||
<pre>{#syntax#}@bitSizeOf(comptime T: type) comptime_int{#endsyntax#}</pre>
|
||||
<p>
|
||||
This function returns the number of bits it takes to store {#syntax#}T{#endsyntax#} in memory.
|
||||
This function returns the number of bits it takes to store {#syntax#}T{#endsyntax#} in memory if the type
|
||||
were a field in a packed struct/union.
|
||||
The result is a target-specific compile time constant.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user