]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/gob: Fix typo in doc.go
authorLuit van Drongelen <luitvd@gmail.com>
Sat, 1 Dec 2012 23:15:14 +0000 (15:15 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 1 Dec 2012 23:15:14 +0000 (15:15 -0800)
Exactly how I find minute details like this is beyond me.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6842125

src/pkg/encoding/gob/doc.go

index 6d77c171f412739f599ddbb73df3f804f01e7558..8b6fcfb4c877c50b596e401f39380b8512118864 100644 (file)
@@ -328,7 +328,7 @@ reserved).
        01      // Add 1 to get field number 0: field[1].name
        01      // 1 byte
        59      // structType.field[1].name = "Y"
-       01      // Add 1 to get field number 1: field[0].id
+       01      // Add 1 to get field number 1: field[1].id
        04      // struct.Type.field[1].typeId is 2 (signed int).
        00      // End of structType.field[1]; end of structType.field.
        00      // end of wireType.structType structure