From fbec8347cbdccbaafdde7e59631485731d0da153 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 27 Feb 2013 14:42:53 -0800 Subject: [PATCH] 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 --- doc/effective_go.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index a373776892..4bc92870ac 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -3041,7 +3041,6 @@ Similarly, assigning greeting to a blank identifier will silence the unused variable error.

{{code "/doc/progs/unused2.go" `/package/` `$`}} -

Import for side effect

@@ -3103,7 +3102,7 @@ cause the compiler to verify this automatically. A declaration can be used to add such a check:

-var _ json.Marshaler = (*MyMessage)(nil)
+var _ json.Marshaler = (*RawMessage)(nil)
 

As part of type-checking this static assignment of a