]> Cypherpunks repositories - gostls13.git/commitdiff
doc/effective_go.html: use correct name in Interface Checks section
authorRob Pike <r@golang.org>
Wed, 27 Feb 2013 22:42:53 +0000 (14:42 -0800)
committerRob Pike <r@golang.org>
Wed, 27 Feb 2013 22:42:53 +0000 (14:42 -0800)
Fixes #4897.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7377061

doc/effective_go.html

index a373776892d76c789233ca0300323f8dc427bd7c..4bc92870ac39b64edbe2e89793c43f7f9c86a611 100644 (file)
@@ -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