aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/gob
diff options
context:
space:
mode:
authorLaurent Voisin <lpvoisin@gmail.com>2017-10-08 18:01:18 +0200
committerAlberto Donizetti <alb.donizetti@gmail.com>2017-10-08 18:11:32 +0000
commitdd4988fd995e54a19781f7caeb49e020602697f6 (patch)
tree884608420d0e97b262bf4553660cd7cd52e57e86 /src/encoding/gob
parentca360c39924bc1a4658c14ff023c4628c11f13a3 (diff)
downloadgo-dd4988fd995e54a19781f7caeb49e020602697f6.tar.gz
go-dd4988fd995e54a19781f7caeb49e020602697f6.zip
encoding/gob: fix a typo in the package documentation
Change-Id: I6aee75a6ae1470dfc658d72a5b6508fb93503057 Reviewed-on: https://go-review.googlesource.com/69115 Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
Diffstat (limited to 'src/encoding/gob')
-rw-r--r--src/encoding/gob/doc.go2
1 files changed, 1 insertions, 1 deletions
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