From 3409e2a2e6653e97c25dc7a26ad53dbedfa4ef04 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 18 Nov 2013 12:38:31 +1100 Subject: [PATCH] [release-branch.go1.2] encoding/gob: expose encode/decode example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ««« CL 26220045 / d76ade89413f encoding/gob: expose encode/decode example R=golang-dev, r CC=golang-dev https://golang.org/cl/26220045 »»» R=golang-dev CC=golang-dev https://golang.org/cl/25380044 --- src/pkg/encoding/gob/example_encdec_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/encoding/gob/example_encdec_test.go b/src/pkg/encoding/gob/example_encdec_test.go index 0ae6d9d991..e45ad4ccfb 100644 --- a/src/pkg/encoding/gob/example_encdec_test.go +++ b/src/pkg/encoding/gob/example_encdec_test.go @@ -37,7 +37,7 @@ func (v *Vector) UnmarshalBinary(data []byte) error { } // This example transmits a value that implements the custom encoding and decoding methods. -func Example_gob_encode_decode() { +func Example_encodeDecode() { var network bytes.Buffer // Stand-in for the network. // Create an encoder and send a value.