Commit 8527718350

Sebastian <15335529+Sobeston@users.noreply.github.com>
2020-06-20 13:16:57
langref - document that This works on enums too
1 parent 605769e
Changed files (1)
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#}