]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.2] encoding/gob: expose encode/decode example
authorAndrew Gerrand <adg@golang.org>
Mon, 18 Nov 2013 01:38:31 +0000 (12:38 +1100)
committerAndrew Gerrand <adg@golang.org>
Mon, 18 Nov 2013 01:38:31 +0000 (12:38 +1100)
««« 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

index 0ae6d9d9912b5bab61cc8e69fd2e869304973204..e45ad4ccfb985c7dc09d4b2e000b371cd50752c7 100644 (file)
@@ -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.