From da54dfb6a1f3bef827b9ec3780c98fde77a97d11 Mon Sep 17 00:00:00 2001 From: KimMachineGun Date: Sun, 29 Nov 2020 08:18:12 +0000 Subject: [PATCH] doc/go1.16: document new behavior of asn1.Unmarshal on invalid argument For #41509 Change-Id: Ie761c428710d15848cb80ffd2d85de747113f2d4 GitHub-Last-Rev: 05541624593d945d82b6f4cfae1461654eabea7b GitHub-Pull-Request: golang/go#42315 Reviewed-on: https://go-review.googlesource.com/c/go/+/267057 Trust: Dmitri Shuralyov Reviewed-by: Ian Lance Taylor --- doc/go1.16.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/go1.16.html b/doc/go1.16.html index 086557ca48b..f8b2c3f371f 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -453,6 +453,18 @@ Do not send CLs removing the interior tags from such phrases. +
encoding/asn1
+
+

+ Unmarshal and + UnmarshalWithParams + now return an error instead of panic when the argument is not + a pointer or is nil. This change matches the behavior of other + encoding packages such as encoding/json. +

+
+
+
encoding/json