Commit b6c7cc32 authored by Andrew Gerrand's avatar Andrew Gerrand

encoding/gob: expose encode/decode example

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/26220045
parent 833dc85c
......@@ -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.
......
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