From 5972b67e5d7b3b36ce1854ee9365197e78f654cd Mon Sep 17 00:00:00 2001 From: Felix Cornelius <9767036+fcornelius@users.noreply.github.com> Date: Fri, 28 Feb 2020 21:13:59 +0100 Subject: [PATCH] doc: remove detail about interface embeddings --- doc/effective_go.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index c1667a05ee..9be6bc7cb0 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -2695,10 +2695,8 @@ type ReadWriter interface {
This says just what it looks like: A ReadWriter
can do
what a Reader
does and what a Writer
-does; it is a union of the embedded interfaces. The embedding of interfaces
-with overlapping method sets is allowed since Go 1.14: methods from an embedded
-interface may have the same names and identical signatures as methods already
-present in the (embedding) interface. Only interfaces can be embedded within interfaces.
+does; it is a union of the embedded interfaces.
+Only interfaces can be embedded within interfaces.
The same basic idea applies to structs, but with more far-reaching