authorgravatar for yujiri@disroot.orgEvin Yulo <yujiri@disroot.org> 2022-12-09 13:10:47+00:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-12-09 19:59:47+02:00
logd0172488b2aa6490dcb983c24cac76e72fa972c0
treed74e9e9a94df752a0f3b59450071d0d5aed969c8
parentc49e4d534fb8e8ec994a8ffbc62eae8ef1e4e819

langref: update anonymous struct naming

Closes #13841

1 files changed, 1 insertions(+), 1 deletions(-)

doc/langref.html.in+1-1
...@@ -3472,7 +3472,7 @@ test "aligned struct fields" {...@@ -3472,7 +3472,7 @@ test "aligned struct fields" {
3472 that variable.</li>3472 that variable.</li>
3473 <li>If the struct is in the {#syntax#}return{#endsyntax#} expression, it gets named after3473 <li>If the struct is in the {#syntax#}return{#endsyntax#} expression, it gets named after
3474 the function it is returning from, with the parameter values serialized.</li>3474 the function it is returning from, with the parameter values serialized.</li>
3475 <li>Otherwise, the struct gets a name such as <code>(anonymous struct at file.zig:7:38)</code>.</li>3475 <li>Otherwise, the struct gets a name such as <code>(filename.funcname.__struct_ID)</code>.</li>
3476 <li>If the struct is declared inside another struct, it gets named after both the parent3476 <li>If the struct is declared inside another struct, it gets named after both the parent
3477 struct and the name inferred by the previous rules, separated by a dot.</li>3477 struct and the name inferred by the previous rules, separated by a dot.</li>
3478 </ul>3478 </ul>