1
0
mirror of https://github.com/golang/go synced 2024-11-18 17:54:57 -07:00

encoding/gob: amend comment for decAlloc

This commit is contained in:
Jes Cok 2023-08-28 19:44:25 +08:00
parent 071aed2aaa
commit e78a371180

View 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() {