diff --git a/doc/langref.html.in b/doc/langref.html.in
index 5e054a7829..f6f47d1225 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -2269,7 +2269,7 @@ or
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 (filename.funcname.__struct_ID).
+ 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.