From 85277183504148dd5c14bd153661377e76118d3b Mon Sep 17 00:00:00 2001 From: Sebastian <15335529+Sobeston@users.noreply.github.com> Date: Sat, 20 Jun 2020 12:16:57 +0100 Subject: [PATCH] langref - document that This works on enums too --- doc/langref.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index e810b36be2..aaa15e91d0 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -8204,7 +8204,7 @@ test "vector @splat" { {#header_open|@This#}
{#syntax#}@This() type{#endsyntax#}

- 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:

{#code_begin|test#}