]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/gob: fix typo in comment for decAlloc
authorJes Cok <xigua67damn@gmail.com>
Mon, 28 Aug 2023 12:41:02 +0000 (12:41 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 7 Sep 2023 19:10:23 +0000 (19:10 +0000)
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 <mdempsky@google.com>
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Rob Pike <r@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/encoding/gob/decode.go

index 1b33503bc79f8a9447414ca82154abf24c994783..d178b2b2fb6467a561bb881bb3bdc4aa78e804c5 100644 (file)
@@ -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() {