authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2020-06-20 11:34:07+00:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-06-20 11:34:07+00:00
logaa894cea2c4aab32cc137adbe22c5f25411cc723
tree5d907db3e5e290e4a826dfb5aeb96ce729860ef3
parent605769ec25923a50fc01d29d5837fbc48abffcf1
parent85277183504148dd5c14bd153661377e76118d3b
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #5645 from Sobeston/patch-7

langref - document that This works on enums too

1 files changed, 1 insertions(+), 1 deletions(-)

doc/langref.html.in+1-1
...@@ -8204,7 +8204,7 @@ test "vector @splat" {...@@ -8204,7 +8204,7 @@ test "vector @splat" {
8204 {#header_open|@This#}8204 {#header_open|@This#}
8205 <pre>{#syntax#}@This() type{#endsyntax#}</pre>8205 <pre>{#syntax#}@This() type{#endsyntax#}</pre>
8206 <p>8206 <p>
8207 Returns the innermost struct or union that this function call is inside.8207 Returns the innermost struct, enum, or union that this function call is inside.
8208 This can be useful for an anonymous struct that needs to refer to itself:8208 This can be useful for an anonymous struct that needs to refer to itself:
8209 </p>8209 </p>
8210 {#code_begin|test#}8210 {#code_begin|test#}