aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimMachineGun <geon0250@gmail.com>2021-02-08 23:27:52 +0000
committerDmitri Shuralyov <dmitshur@golang.org>2021-02-08 23:32:14 +0000
commitdc725bfb3c3f29c7395e088d25ef6bf8dba8f129 (patch)
tree279e19e92c3e18f97c655d028da023fd20ba1eec
parent1901853098bbe25a1bbedc0ee53c6658d754151e (diff)
downloadgo-dc725bfb3c3f29c7395e088d25ef6bf8dba8f129.tar.gz
go-dc725bfb3c3f29c7395e088d25ef6bf8dba8f129.zip
doc/go1.16: mention new vet check for asn1.Unmarshal
This vet check was added in CL 243397. For #40700. Change-Id: Ibff6df9395d37bb2b84a791443578009f23af4fb GitHub-Last-Rev: e47c38f6309f31a6de48d4ffc82078d7ad45b171 GitHub-Pull-Request: golang/go#44147 Reviewed-on: https://go-review.googlesource.com/c/go/+/290330 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
-rw-r--r--doc/go1.16.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/go1.16.html b/doc/go1.16.html
index 878bf0d0293..f6f72c3882c 100644
--- a/doc/go1.16.html
+++ b/doc/go1.16.html
@@ -378,6 +378,16 @@ func TestFoo(t *testing.T) {
fixes.
</p>
+<h4 id="vet-asn1-unmarshal">New warning for asn1.Unmarshal</h4>
+
+<p><!-- CL 243397 -->
+ The vet tool now warns about incorrectly passing a non-pointer or nil argument to
+ <a href="/pkg/encoding/asn1/#Unmarshal"><code>asn1.Unmarshal</code></a>.
+ This is like the existing checks for
+ <a href="/pkg/encoding/json/#Unmarshal"><code>encoding/json.Unmarshal</code></a>
+ and <a href="/pkg/encoding/xml/#Unmarshal"><code>encoding/xml.Unmarshal</code></a>.
+</p>
+
<h2 id="runtime">Runtime</h2>
<p>