Skip to content

Commit e47c38f

Browse files
committed
doc/go1.16: revamp vet check for asn1.Unamrshal section
1 parent 070c0b6 commit e47c38f

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

doc/go1.16.html

+4-14
Original file line numberDiff line numberDiff line change
@@ -381,21 +381,11 @@ <h4 id="vet-frame-pointer">New warning for frame pointer</h4>
381381
<h4 id="vet-asn1-unmarshal">New warning for asn1.Unmarshal</h4>
382382

383383
<p><!-- CL 243397 -->
384-
The vet tool now warns about invalid calls of
384+
The vet tool now warns about incorrectly passing a non-pointer or nil argument to
385385
<a href="/pkg/encoding/asn1/#Unmarshal"><code>asn1.Unmarshal</code></a>.
386-
If you pass non-pointer or nil argument to
387-
<a href="/pkg/encoding/asn1/#Unmarshal"><code>asn1.Unmarshal</code></a>,
388-
the vet tool will report it.
389-
</p>
390-
391-
<p>
392-
The vet tool already has been checking invalid <code>Unmarshal</code> and
393-
<code>Decode</code> calls of other encoding packages such as
394-
<a href="/pkg/encoding/json"><code>encoding/json</code></a>,
395-
<a href="/pkg/encoding/xml"><code>encoding/xml</code></a>.
396-
This release makes the vet tool check
397-
<a href="/pkg/encoding/asn1"><code>encoding/asn1</code></a>'s one
398-
as well.
386+
This is like the existing checks for
387+
<a href="/pkg/encoding/json/#Unmarshal"><code>encoding/json.Unmarshal</code></a>
388+
and <a href="/pkg/encoding/xml/#Unmarshal"><code>encoding/xml.Unmarshal</code></a>.
399389
</p>
400390

401391
<h2 id="runtime">Runtime</h2>

0 commit comments

Comments
 (0)