]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/gob: fix a typo in the package documentation
authorLaurent Voisin <lpvoisin@gmail.com>
Sun, 8 Oct 2017 16:01:18 +0000 (18:01 +0200)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Sun, 8 Oct 2017 18:11:32 +0000 (18:11 +0000)
Change-Id: I6aee75a6ae1470dfc658d72a5b6508fb93503057
Reviewed-on: https://go-review.googlesource.com/69115
Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
src/encoding/gob/doc.go

index db734ecc1ec7a0444f9869aa35102183e5945176..fa534313cc9b1a5ce528679ada1db048b316ca2b 100644 (file)
@@ -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