]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.15: document new bufio.ErrBadReadCount
authorIan Lance Taylor <iant@golang.org>
Fri, 12 Jun 2020 22:40:56 +0000 (15:40 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 18 Jun 2020 01:12:21 +0000 (01:12 +0000)
For #37419
For #38053

Change-Id: I206f360ff4957bc7edc3c35dfc814b7bd5ec440c
Reviewed-on: https://go-review.googlesource.com/c/go/+/237739
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
doc/go1.15.html

index 33598a262dc52854575e4d9a14760c9ce7455b93..b6cf5bb8f60b0c209c1e6db396f71a9477fbb363 100644 (file)
@@ -375,6 +375,20 @@ Do not send CLs removing the interior tags from such phrases.
   in mind.
 </p>
 
+<dl id="bufio"><dt><a href="/pkg/bufio/">bufio</a></dt>
+  <dd>
+    <p><!-- CL 225357, CL 225557 -->
+      When a <a href="/pkg/bufio/#Scanner"><code>Scanner</code></a> is
+      used with an invalid
+      <a href="/pkg/io/#Reader"><code>io.Reader</code></a> that
+      incorrectly returns a negative number from <code>Read</code>,
+      the <code>Scanner</code> will no longer panic, but will instead
+      return the new error
+      <a href="/pkg/bufio/#ErrBadReadCount"><code>ErrBadReadCount</code></a>.
+    </p>
+  </dd>
+</dl><!-- bufio -->
+
 <dl id="crypto"><dt><a href="/pkg/crypto/">crypto</a></dt>
   <dd>
     <p><!-- CL 231417, CL 225460 -->