1
0
mirror of https://github.com/golang/go synced 2024-09-23 21:20:13 -06:00

doc: remove detail about interface embeddings

This commit is contained in:
Felix Cornelius 2020-02-28 21:13:59 +01:00 committed by GitHub
parent eca9c1ae8a
commit 5972b67e5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2695,10 +2695,8 @@ type ReadWriter interface {
<p>
This says just what it looks like: A <code>ReadWriter</code> can do
what a <code>Reader</code> does <em>and</em> what a <code>Writer</code>
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.
</p>
<p>
The same basic idea applies to structs, but with more far-reaching