aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-10-31 17:48:19 -0700
committerRob Pike <r@golang.org>2010-10-31 17:48:19 -0700
commit6dc4c58f87c68b88a2ac3d1ff7d99722eb5ff032 (patch)
tree89cb85408fb2156f9923f79d1c719715539986de
parentfbfb1d9e72cd83aef4c3988f678744a763888de8 (diff)
downloadgo-6dc4c58f87c68b88a2ac3d1ff7d99722eb5ff032.tar.gz
go-6dc4c58f87c68b88a2ac3d1ff7d99722eb5ff032.zip
gob: documentation. this time for sure.
if the interface value is nil, it sends no value, R=rsc, adg CC=golang-dev https://golang.org/cl/2801042
-rw-r--r--src/pkg/gob/doc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/gob/doc.go b/src/pkg/gob/doc.go
index 81e3029ac2..2e7232db51 100644
--- a/src/pkg/gob/doc.go
+++ b/src/pkg/gob/doc.go
@@ -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