commit aa894cea2c4aab32cc137adbe22c5f25411cc723 (tree)
parent 605769ec25923a50fc01d29d5837fbc48abffcf1
Author: Veikka Tuominen <git@vexu.eu>
Date: Sat, 20 Jun 2020 11:34:07 +0000
Merge pull request #5645 from Sobeston/patch-7
langref - document that This works on enums too
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/langref.html.in b/doc/langref.html.in
@@ -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#}