mirror of
https://github.com/golang/go
synced 2024-11-12 02:00:23 -07:00
doc/effective_go.html: use correct name in Interface Checks section
Fixes #4897. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7377061
This commit is contained in:
parent
029457aab5
commit
fbec8347cb
@ -3041,7 +3041,6 @@ Similarly, assigning <code>greeting</code> to a blank identifier
|
||||
will silence the unused variable error.
|
||||
</p>
|
||||
{{code "/doc/progs/unused2.go" `/package/` `$`}}
|
||||
<p>
|
||||
|
||||
<h3 id="blank_import">Import for side effect</h3>
|
||||
|
||||
@ -3103,7 +3102,7 @@ cause the compiler to verify this automatically.
|
||||
A declaration can be used to add such a check:
|
||||
</p>
|
||||
<pre>
|
||||
var _ json.Marshaler = (*MyMessage)(nil)
|
||||
var _ json.Marshaler = (*RawMessage)(nil)
|
||||
</pre>
|
||||
<p>
|
||||
As part of type-checking this static assignment of a
|
||||
|
Loading…
Reference in New Issue
Block a user