Update langref.html.in

This commit is contained in:
Raul Leal 2018-09-07 22:58:31 +01:00 committed by GitHub
parent 09a1162af5
commit f2186e5fa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5847,7 +5847,7 @@ fn add(a: i32, b: i32) i32 {
{#header_open|@bitOffsetOf#} {#header_open|@bitOffsetOf#}
<pre><code class="zig">@bitOffsetOf(comptime T: type, comptime field_name: [] const u8) (number literal)</code></pre> <pre><code class="zig">@bitOffsetOf(comptime T: type, comptime field_name: [] const u8) (number literal)</code></pre>
<p> <p>
This function returns the byte offset of a field relative to its containing struct. This function returns the bit offset of a field relative to its containing struct.
</p> </p>
{#header_close#} {#header_close#}
{#header_open|@OpaqueType#} {#header_open|@OpaqueType#}