From da0a6f4b57fc9eb4779c295bc9620c5ed271a641 Mon Sep 17 00:00:00 2001
From: Robert Griesemer
Date: Thu, 12 May 2022 13:25:01 -0700
Subject: [PATCH] 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
Reviewed-by: Robert Griesemer
---
doc/go_spec.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
-Given a struct type S
and a defined type
+Given a struct type S
and a named type
T
, promoted methods are included in the method set of the struct as follows: