From 5d5d84f3df7f735563a411b5dc940bcf731bc771 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Mon, 30 May 2011 10:48:08 +1000 Subject: [PATCH] gob: fix documentation on Decoder.Decode. R=r, adg CC=golang-dev https://golang.org/cl/4515159 --- src/pkg/gob/decoder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/gob/decoder.go b/src/pkg/gob/decoder.go index ea2f62ec50..b83904a710 100644 --- a/src/pkg/gob/decoder.go +++ b/src/pkg/gob/decoder.go @@ -155,8 +155,8 @@ func (dec *Decoder) decodeTypeSequence(isInterface bool) typeId { // Decode reads the next value from the connection and stores // it in the data represented by the empty interface value. // If e is nil, the value will be discarded. Otherwise, -// the value underlying e must either be the correct type for the next -// data item received, and must be a pointer. +// the value underlying e must be a pointer to the +// correct type for the next data item received. func (dec *Decoder) Decode(e interface{}) os.Error { if e == nil { return dec.DecodeValue(reflect.Value{}) -- 2.50.0