diff options
| author | Robin Voetter <robin@voetter.nl> | 2022-03-19 12:26:21 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-19 19:40:46 -0400 |
| commit | 5c3325588ef4e85e85cb201ad9328fe26bbb8dca (patch) | |
| tree | 032f631f03759b73175e4f2ce8abbf7f91cc8a53 /doc | |
| parent | a318aeed9b8ccec453e9f15415ea3fd20cb13c8d (diff) | |
| download | zig-5c3325588ef4e85e85cb201ad9328fe26bbb8dca.tar.gz zig-5c3325588ef4e85e85cb201ad9328fe26bbb8dca.zip | |
stage1: make type names more unique
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"); |
