diff --git a/doc/langref.html.in b/doc/langref.html.in index 225b98303b48..829a6b745120 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -2180,16 +2180,20 @@ or Unlike normal structs, {#syntax#}packed{#endsyntax#} structs have guaranteed in-memory layout:

@@ -2200,8 +2204,7 @@ or {#code|test_packed_structs.zig#}

- The backing integer is inferred from the fields' total bit width. - Optionally, it can be explicitly provided and enforced at compile time: + The backing integer can be inferred or explicitly provided. When inferred it will be unsigned, and when explicitly provided, its bit count will be enforced at compile time:

{#code|test_missized_packed_struct.zig#} @@ -2248,9 +2251,6 @@ or {#code|test_packed_struct_equality.zig#}

- Using packed structs with {#link|volatile#} is problematic, and may be a compile error in the future. - For details on this subscribe to - this issue. TODO update these docs with a recommendation on how to use packed structs with MMIO (the use case for volatile packed structs) once this issue is resolved. Don't worry, there will be a good solution for this use case in zig.