mirror of
https://github.com/golang/go
synced 2024-10-14 03:43:28 +00:00
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>
|
||||
Covariant result types would mean that an interface like
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
type Copyable interface {
|
||||
|
@ -896,7 +897,9 @@ type Copyable interface {
|
|||
}
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
would be satisfied by the method
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
func (v Value) Copy() Value
|
||||
|
|
Loading…
Reference in a new issue