]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.16: document new behavior of asn1.Unmarshal on invalid argument
authorKimMachineGun <geon0250@gmail.com>
Sun, 29 Nov 2020 08:18:12 +0000 (08:18 +0000)
committerIan Lance Taylor <iant@golang.org>
Thu, 3 Dec 2020 02:35:36 +0000 (02:35 +0000)
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 <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.16.html

index 086557ca48bc987cb77508984cf23b05ebcb8add..f8b2c3f371f548ed626d6566b7aca6ba37ce4737 100644 (file)
@@ -453,6 +453,18 @@ Do not send CLs removing the interior tags from such phrases.
   </dd>
 </dl><!-- crypto/x509 -->
 
+<dl id="encoding/asn1"><dt><a href="/pkg/encoding/asn1">encoding/asn1</a></dt>
+  <dd>
+    <p><!-- CL 255881 -->
+      <a href="/pkg/encoding/asn1/#Unmarshal">Unmarshal</a> and
+      <a href="/pkg/encoding/asn1/#UnmarshalWithParams">UnmarshalWithParams</a>
+      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 <a href="/pkg/encoding/json">encoding/json</a>.
+    </p>
+  </dd>
+</dl>
+
 <dl id="encoding/json"><dt><a href="/pkg/encoding/json/">encoding/json</a></dt>
   <dd>
     <p><!-- CL 234818 -->