]> Cypherpunks repositories - gostls13.git/commitdiff
gob: fix documentation on Decoder.Decode.
authorDavid Symonds <dsymonds@golang.org>
Mon, 30 May 2011 00:48:08 +0000 (10:48 +1000)
committerDavid Symonds <dsymonds@golang.org>
Mon, 30 May 2011 00:48:08 +0000 (10:48 +1000)
R=r, adg
CC=golang-dev
https://golang.org/cl/4515159

src/pkg/gob/decoder.go

index ea2f62ec5034d1176df7e4d3b0eb57355531ff83..b83904a710a06b1bd0a5e38129d6816342ca99c3 100644 (file)
@@ -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{})