mirror of https://github.com/golang/go.git
doc/go1.15: document new bufio.ErrBadReadCount
For #37419 For #38053 Change-Id: I206f360ff4957bc7edc3c35dfc814b7bd5ec440c Reviewed-on: https://go-review.googlesource.com/c/go/+/237739 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
292a771b87
commit
84baf4162a
|
|
@ -375,6 +375,20 @@ Do not send CLs removing the interior tags from such phrases.
|
||||||
in mind.
|
in mind.
|
||||||
</p>
|
</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>
|
<dl id="crypto"><dt><a href="/pkg/crypto/">crypto</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><!-- CL 231417, CL 225460 -->
|
<p><!-- CL 231417, CL 225460 -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue