diff options
| author | Evin Yulo <yujiri@disroot.org> | 2022-12-09 13:10:47 +0000 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-12-09 19:59:47 +0200 |
| commit | d0172488b2aa6490dcb983c24cac76e72fa972c0 (patch) | |
| tree | d74e9e9a94df752a0f3b59450071d0d5aed969c8 /doc | |
| parent | c49e4d534fb8e8ec994a8ffbc62eae8ef1e4e819 (diff) | |
| download | zig-d0172488b2aa6490dcb983c24cac76e72fa972c0.tar.gz zig-d0172488b2aa6490dcb983c24cac76e72fa972c0.zip | |
langref: update anonymous struct naming
Closes #13841
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 010e2cd99e..e8f2770bbf 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3472,7 +3472,7 @@ test "aligned struct fields" { that variable.</li> <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>Otherwise, the struct gets a name such as <code>(filename.funcname.__struct_ID)</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> |
