From d0172488b2aa6490dcb983c24cac76e72fa972c0 Mon Sep 17 00:00:00 2001 From: Evin Yulo Date: Fri, 9 Dec 2022 13:10:47 +0000 Subject: [PATCH] langref: update anonymous struct naming Closes #13841 --- 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 010e2cd99e..e8f2770bbf 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3472,7 +3472,7 @@ test "aligned struct fields" { that variable.
  • If the struct is in the {#syntax#}return{#endsyntax#} expression, it gets named after the function it is returning from, with the parameter values serialized.
  • -
  • Otherwise, the struct gets a name such as (anonymous struct at file.zig:7:38).
  • +
  • Otherwise, the struct gets a name such as (filename.funcname.__struct_ID).
  • If the struct is declared inside another struct, it gets named after both the parent struct and the name inferred by the previous rules, separated by a dot.