aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml
diff options
context:
space:
mode:
authorEmmanuel Odeke <emm.odeke@gmail.com>2016-07-03 14:57:35 -0700
committerAndrew Gerrand <adg@golang.org>2016-07-05 06:36:21 +0000
commit5a9d5c37479231336efef0e0fa5b75645aa1c569 (patch)
tree2949fb912a6a0fb13f77ff98d9cddced2e89e5b4 /src/encoding/xml
parent003a68bc7fcb917b5a4d92a5c2244bb1adf8f690 (diff)
downloadgo-5a9d5c37479231336efef0e0fa5b75645aa1c569.tar.xz
encoding/gob: document Encode, EncodeValue nil pointer panics
Fixes #16258. Docs for Encode and EncodeValue do not mention that nil pointers are not permitted hence we panic, because Gobs encode values yet nil pointers have no value to encode. It moves a comment that was internal to EncodeValue to the top level to make it clearer to users what to expect when they pass in nil pointers. Supplements test TestTopLevelNilPointer. Change-Id: Ie54f609fde4b791605960e088456047eb9aa8738 Reviewed-on: https://go-review.googlesource.com/24740 Reviewed-by: Andrew Gerrand <adg@golang.org> Run-TryBot: Andrew Gerrand <adg@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/xml')
0 files changed, 0 insertions, 0 deletions