Commit fbec8347 authored by Rob Pike's avatar Rob Pike

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
parent 029457aa
...@@ -3041,7 +3041,6 @@ Similarly, assigning <code>greeting</code> to a blank identifier ...@@ -3041,7 +3041,6 @@ Similarly, assigning <code>greeting</code> to a blank identifier
will silence the unused variable error. will silence the unused variable error.
</p> </p>
{{code "/doc/progs/unused2.go" `/package/` `$`}} {{code "/doc/progs/unused2.go" `/package/` `$`}}
<p>
<h3 id="blank_import">Import for side effect</h3> <h3 id="blank_import">Import for side effect</h3>
...@@ -3103,7 +3102,7 @@ cause the compiler to verify this automatically. ...@@ -3103,7 +3102,7 @@ cause the compiler to verify this automatically.
A declaration can be used to add such a check: A declaration can be used to add such a check:
</p> </p>
<pre> <pre>
var _ json.Marshaler = (*MyMessage)(nil) var _ json.Marshaler = (*RawMessage)(nil)
</pre> </pre>
<p> <p>
As part of type-checking this static assignment of a As part of type-checking this static assignment of a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment