From 5c3325588ef4e85e85cb201ad9328fe26bbb8dca Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Sat, 19 Mar 2022 12:26:21 +0100 Subject: stage1: make type names more unique --- doc/langref.html.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/langref.html.in b/doc/langref.html.in index abe83d2117..a7e8058a25 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3454,6 +3454,8 @@ test "aligned struct fields" {
  • 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).
  • +
  • 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.
  • {#code_begin|exe|struct_name#} const std = @import("std"); -- cgit v1.2.3