mirror of
https://github.com/golang/go
synced 2024-11-23 03:30:02 -07:00
encoding/gob: fix typo in comment for decAlloc
Change-Id: I89c607ee40358d6d650ba0ea1f05ce7d1df698bd
GitHub-Last-Rev: e78a371180
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>
This commit is contained in:
parent
9a9aa6e238
commit
584d646559
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user