From 3b8c4f07a4a83a31f9d863dd6410332982be1c1e Mon Sep 17 00:00:00 2001 From: Jonathan Marler Date: Wed, 7 Jul 2021 12:39:44 -0600 Subject: [PATCH] clarify @bitSizeOf behavior --- doc/langref.html.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 2e40a6e807..f4376cbfdd 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -7081,7 +7081,8 @@ fn func(y: *i32) void { {#header_open|@bitSizeOf#}
{#syntax#}@bitSizeOf(comptime T: type) comptime_int{#endsyntax#}

- 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.