diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-08-30 21:12:17 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-08-30 21:12:17 -0700 |
| commit | 37df6ba86e3f4e0f5d6a20ea8dad8f661fe0849e (patch) | |
| tree | 4cdbaefe9182af62e33ecbe227271dd5ceec155d | |
| parent | e084c46ed6906dc51724d99b29f0992272384f5a (diff) | |
| download | zig-37df6ba86e3f4e0f5d6a20ea8dad8f661fe0849e.tar.gz zig-37df6ba86e3f4e0f5d6a20ea8dad8f661fe0849e.zip | |
langref: separate header for faulty default field values
| -rw-r--r-- | doc/langref.html.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 391702cf8f..cea86e8955 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -2138,6 +2138,7 @@ or </p> {#code|struct_default_field_values.zig#} + {#header_open|Faulty Default Field Values#} <p> Default field values are only appropriate when the data invariants of a struct cannot be violated by omitting that field from an initialization. @@ -2162,6 +2163,7 @@ or without violating data invariants, then use an initialization method that accepts those runtime values, and populates the remaining fields.</p> {#header_close#} + {#header_close#} {#header_open|extern struct#} <p>An {#syntax#}extern struct{#endsyntax#} has in-memory layout matching |
