diff --git a/src/encoding/gob/doc.go b/src/encoding/gob/doc.go index db734ecc1e..fa534313cc 100644 --- a/src/encoding/gob/doc.go +++ b/src/encoding/gob/doc.go @@ -381,7 +381,7 @@ Now we can send the Point value. Again the field number resets to -1: 07 // this value is 7 bytes long ff 82 // the type number, 65 (1 byte (-FF) followed by 65<<1) 01 // add one to field number, yielding field 0 - 2c // encoding of signed "22" (0x22 = 44 = 22<<1); Point.x = 22 + 2c // encoding of signed "22" (0x2c = 44 = 22<<1); Point.x = 22 01 // add one to field number, yielding field 1 42 // encoding of signed "33" (0x42 = 66 = 33<<1); Point.y = 33 00 // end of structure