mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 05:48:31 +00:00
langref - document that This works on enums too
This commit is contained in:
parent
605769ec25
commit
8527718350
@ -8204,7 +8204,7 @@ test "vector @splat" {
|
||||
{#header_open|@This#}
|
||||
<pre>{#syntax#}@This() type{#endsyntax#}</pre>
|
||||
<p>
|
||||
Returns the innermost struct or union that this function call is inside.
|
||||
Returns the innermost struct, enum, or union that this function call is inside.
|
||||
This can be useful for an anonymous struct that needs to refer to itself:
|
||||
</p>
|
||||
{#code_begin|test#}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user