Skip to content

Commit da0a6f4

Browse files
committed
spec: fix prose about promoted methods of embedded fields
The types of embedded fields must be named, but they don't need to be defined types (e.g. if the type name is an alias). Fixes #41687. Change-Id: Ib9de65dfab0e23c27d8303875fa45c217aa03331 Reviewed-on: https://go-review.googlesource.com/c/go/+/406054 Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Robert Griesemer <gri@google.com>
1 parent 6365efb commit da0a6f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/go_spec.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ <h3 id="Struct_types">Struct types</h3>
10891089
</p>
10901090

10911091
<p>
1092-
Given a struct type <code>S</code> and a <a href="#Type_definitions">defined type</a>
1092+
Given a struct type <code>S</code> and a <a href="#Types">named type</a>
10931093
<code>T</code>, promoted methods are included in the method set of the struct as follows:
10941094
</p>
10951095
<ul>

0 commit comments

Comments
 (0)