doc/go1.16: document new behavior of asn1.Unmarshal on invalid argument

This commit is contained in:
KimMachineGun 2020-11-28 20:50:39 +09:00
parent 358d35455d
commit 975eeec9cb
1 changed files with 12 additions and 0 deletions

View File

@ -453,6 +453,18 @@ Do not send CLs removing the interior tags from such phrases.
</dd>
</dl><!-- encoding/xml -->
<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="flag"><dt><a href="/pkg/flag/">flag</a></dt>
<dd>
<p><!-- CL 240014 -->