mirror of https://github.com/golang/go.git
doc: add some missing HTML tags in the FAQ
Fixes #17170 Change-Id: I939f087df133710495fdf6f09040051cb9b176d7 Reviewed-on: https://go-review.googlesource.com/29442 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
dd24b1098a
commit
e7191479ec
|
|
@ -889,6 +889,7 @@ Why does Go not have covariant result types?</h3>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Covariant result types would mean that an interface like
|
Covariant result types would mean that an interface like
|
||||||
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
type Copyable interface {
|
type Copyable interface {
|
||||||
|
|
@ -896,7 +897,9 @@ type Copyable interface {
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
<p>
|
||||||
would be satisfied by the method
|
would be satisfied by the method
|
||||||
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
func (v Value) Copy() Value
|
func (v Value) Copy() Value
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue