]> Cypherpunks repositories - gostls13.git/commitdiff
gob: documentation. this time for sure.
authorRob Pike <r@golang.org>
Mon, 1 Nov 2010 00:48:19 +0000 (17:48 -0700)
committerRob Pike <r@golang.org>
Mon, 1 Nov 2010 00:48:19 +0000 (17:48 -0700)
if the interface value is nil, it sends no value,

R=rsc, adg
CC=golang-dev
https://golang.org/cl/2801042

src/pkg/gob/doc.go

index 81e3029ac29793e6368a0e51734f6d86cfb9f11f..2e7232db51d574d0ecb18ada3912cd7766820154 100644 (file)
@@ -134,8 +134,8 @@ that must be pre-defined by calling Register), followed by a byte count of the
 length of the following data (so the value can be skipped if it cannot be
 stored), followed by the usual encoding of concrete (dynamic) value stored in
 the interface value.  (A nil interface value is identified by the empty string
-and transmits a zero-length value.) Upon receipt, the decoder verifies that the
-unpacked concrete item satisfies the interface of the receiving variable.
+and transmits no value.) Upon receipt, the decoder verifies that the unpacked
+concrete item satisfies the interface of the receiving variable.
 
 The representation of types is described below.  When a type is defined on a given
 connection between an Encoder and Decoder, it is assigned a signed integer type