mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
parent
c49e4d534f
commit
d0172488b2
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user