mirror of
https://github.com/golang/go
synced 2024-09-23 23:10:13 -06:00
doc: remove detail about interface embeddings
This commit is contained in:
parent
eca9c1ae8a
commit
5972b67e5d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user