From 584d646559eb6c5942410f2ba2d2806f2627c2a2 Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Mon, 28 Aug 2023 12:41:02 +0000 Subject: [PATCH] encoding/gob: fix typo in comment for decAlloc Change-Id: I89c607ee40358d6d650ba0ea1f05ce7d1df698bd GitHub-Last-Rev: e78a37118009dbd9468a0f656ad66b989f7c5ada GitHub-Pull-Request: golang/go#62319 Reviewed-on: https://go-review.googlesource.com/c/go/+/523376 Reviewed-by: Matthew Dempsky Reviewed-by: qiulaidongfeng <2645477756@qq.com> Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: Rob Pike LUCI-TryBot-Result: Go LUCI --- src/encoding/gob/decode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoding/gob/decode.go b/src/encoding/gob/decode.go index 1b33503bc79..d178b2b2fb6 100644 --- a/src/encoding/gob/decode.go +++ b/src/encoding/gob/decode.go @@ -222,7 +222,7 @@ func ignoreTwoUints(i *decInstr, state *decoderState, v reflect.Value) { // decAlloc takes a value and returns a settable value that can // be assigned to. If the value is a pointer, decAlloc guarantees it points to storage. // The callers to the individual decoders are expected to have used decAlloc. -// The individual decoders don't need to it. +// The individual decoders don't need it. func decAlloc(v reflect.Value) reflect.Value { for v.Kind() == reflect.Pointer { if v.IsNil() {