aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2022-05-12 13:25:01 -0700
committerRobert Griesemer <gri@golang.org>2022-05-12 22:29:02 +0000
commitda0a6f4b57fc9eb4779c295bc9620c5ed271a641 (patch)
treecab4b04da470abcee3729ff4591dcd092104d59e
parent6365efb7dcfd6ab90ffe5541ca26bd8d875167a3 (diff)
downloadgo-da0a6f4b57fc9eb4779c295bc9620c5ed271a641.tar.xz
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>
-rw-r--r--doc/go_spec.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 3376c47065..1caaba1ccb 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1089,7 +1089,7 @@ of a struct except that they cannot be used as field names in
</p>
<p>
-Given a struct type <code>S</code> and a <a href="#Type_definitions">defined type</a>
+Given a struct type <code>S</code> and a <a href="#Types">named type</a>
<code>T</code>, promoted methods are included in the method set of the struct as follows:
</p>
<ul>