authorgravatar for johnnymarler@gmail.comJonathan Marler <johnnymarler@gmail.com> 2021-07-07 12:39:44-06:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-07-21 12:24:47-07:00
log3b8c4f07a4a83a31f9d863dd6410332982be1c1e
treee526f7cec5eb5eecde86f1995da097f0fa14e4e8
parent3dcbd489eba48107443a514e5470e1a58d6691d9

clarify @bitSizeOf behavior


1 files changed, 2 insertions(+), 1 deletions(-)

doc/langref.html.in+2-1
...@@ -7081,7 +7081,8 @@ fn func(y: *i32) void {...@@ -7081,7 +7081,8 @@ fn func(y: *i32) void {
7081 {#header_open|@bitSizeOf#}7081 {#header_open|@bitSizeOf#}
7082 <pre>{#syntax#}@bitSizeOf(comptime T: type) comptime_int{#endsyntax#}</pre>7082 <pre>{#syntax#}@bitSizeOf(comptime T: type) comptime_int{#endsyntax#}</pre>
7083 <p>7083 <p>
7084 This function returns the number of bits it takes to store {#syntax#}T{#endsyntax#} in memory.7084 This function returns the number of bits it takes to store {#syntax#}T{#endsyntax#} in memory if the type
7085 were a field in a packed struct/union.
7085 The result is a target-specific compile time constant.7086 The result is a target-specific compile time constant.
7086 </p>7087 </p>
7087 <p>7088 <p>