mirror of
https://github.com/golang/go
synced 2024-11-25 05:57:57 -07:00
gob: fix documentation on Decoder.Decode.
R=r, adg CC=golang-dev https://golang.org/cl/4515159
This commit is contained in:
parent
da32ed7bf1
commit
5d5d84f3df
@ -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{})
|
||||
|
Loading…
Reference in New Issue
Block a user