]> Cypherpunks repositories - gostls13.git/commit
encoding/json: document what unmarshal of `null` into non-reference type does
authorRuss Cox <rsc@golang.org>
Tue, 13 May 2014 03:38:26 +0000 (23:38 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 13 May 2014 03:38:26 +0000 (23:38 -0400)
commitfc1e5a8acdfba04482bb17b4ad5bbd3778c50fb3
treefe6c15f5edc4d90013f1093ee8b9cf73f2eb0e93
parent92440fb5bd43912e363f32409bba5d6880356d60
encoding/json: document what unmarshal of `null` into non-reference type does

Originally it was an error, which made perfect sense, but in issue 2540
I got talked out of this sensible behavior. I'm not thrilled with the "new"
behavior but it's been there since Go 1.1 so we're stuck with it now.

Fixes #6724.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/100430043
src/pkg/encoding/json/decode.go