mirror of
https://github.com/golang/go
synced 2024-11-26 04:47:57 -07:00
doc/go1.16: document new behavior of asn1.Unmarshal on invalid argument
For #41509
Change-Id: Ie761c428710d15848cb80ffd2d85de747113f2d4
GitHub-Last-Rev: 0554162459
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>
This commit is contained in:
parent
78e442ea79
commit
da54dfb6a1
@ -453,6 +453,18 @@ Do not send CLs removing the interior tags from such phrases.
|
|||||||
</dd>
|
</dd>
|
||||||
</dl><!-- crypto/x509 -->
|
</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>
|
<dl id="encoding/json"><dt><a href="/pkg/encoding/json/">encoding/json</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><!-- CL 234818 -->
|
<p><!-- CL 234818 -->
|
||||||
|
Loading…
Reference in New Issue
Block a user