diff options
Diffstat (limited to 'doc')
| -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 abe83d2117..a7e8058a25 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3454,6 +3454,8 @@ test "aligned struct fields" { <li>If the struct is in the {#syntax#}return{#endsyntax#} expression, it gets named after the function it is returning from, with the parameter values serialized.</li> <li>Otherwise, the struct gets a name such as <code>(anonymous struct at file.zig:7:38)</code>.</li> + <li>If the struct is declared inside another struct, it gets named after both the parent + struct and the name inferred by the previous rules, separated by a dot.</li> </ul> {#code_begin|exe|struct_name#} const std = @import("std"); |
