From 3f1da518a404f5459e38f34427ae9177fe68f51e Mon Sep 17 00:00:00 2001 From: Chen Su Date: Thu, 25 Jul 2024 15:14:40 +0800 Subject: [PATCH] encoding/gob: fix package doc typo for wireType --- src/encoding/gob/doc.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/encoding/gob/doc.go b/src/encoding/gob/doc.go index 30e7978b7c9..0866ba15446 100644 --- a/src/encoding/gob/doc.go +++ b/src/encoding/gob/doc.go @@ -193,14 +193,13 @@ pair (-type id, encoded-type) where encoded-type is the gob encoding of a wireTy description, constructed from these types: type wireType struct { - ArrayT *ArrayType - SliceT *SliceType - StructT *StructType - MapT *MapType + ArrayT *arrayType + SliceT *sliceType + StructT *structType + MapT *mapType GobEncoderT *gobEncoderType BinaryMarshalerT *gobEncoderType TextMarshalerT *gobEncoderType - } type arrayType struct { CommonType @@ -217,7 +216,7 @@ description, constructed from these types: } type structType struct { CommonType - Field []*fieldType // the fields of the struct. + Field []fieldType // the fields of the struct. } type fieldType struct { Name string // the name of the field.