aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-12-15 10:36:10 +0100
committerTobias Klauser <tobias.klauser@gmail.com>2020-12-15 16:30:24 +0000
commit5046cb8a6e8496f70e47f648ed368ffe87bc5e4e (patch)
tree71a80cdd332071469e1afc8787fa334e20399c66 /doc
parent3298300ddf45a0792b4d8ea5e05f0fbceec4c9f9 (diff)
downloadgo-5046cb8a6e8496f70e47f648ed368ffe87bc5e4e.tar.gz
go-5046cb8a6e8496f70e47f648ed368ffe87bc5e4e.zip
doc/go1.16: fix formatting in net, net/http and net/http/httputil sections
For #40700. Change-Id: I83d9ef9f79d59a0165a47ccc938fc2bf40e90703 Reviewed-on: https://go-review.googlesource.com/c/go/+/278212 Trust: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.16.html13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/go1.16.html b/doc/go1.16.html
index edac1dbd35..2190ed6cd3 100644
--- a/doc/go1.16.html
+++ b/doc/go1.16.html
@@ -721,8 +721,8 @@ func TestFoo(t *testing.T) {
<p><!-- CL 250357 -->
The case of I/O on a closed network connection, or I/O on a network
connection that is closed before any of the I/O completes, can now
- be detected using the new <a href="/pkg/net/#ErrClosed">ErrClosed</a> error.
- A typical use would be <code>errors.Is(err, net.ErrClosed)</code>.
+ be detected using the new <a href="/pkg/net/#ErrClosed"><code>ErrClosed</code></a>
+ error. A typical use would be <code>errors.Is(err, net.ErrClosed)</code>.
In earlier releases the only way to reliably detect this case was to
match the string returned by the <code>Error</code> method
with <code>"use of closed network connection"</code>.
@@ -786,9 +786,10 @@ func TestFoo(t *testing.T) {
</p>
<p><!-- CL 249440 -->
- The <a href="/pkg/net/http/#ProxyFromEnvironment">ProxyFromEnvironment</a> function
- no longer returns the setting of the <code>HTTP_PROXY</code> environment
- variable for <code>https://</code> URLs when <code>HTTPS_PROXY</code> is unset.
+ The <a href="/pkg/net/http/#ProxyFromEnvironment"><code>ProxyFromEnvironment</code></a>
+ function no longer returns the setting of the <code>HTTP_PROXY</code>
+ environment variable for <code>https://</code> URLs when
+ <code>HTTPS_PROXY</code> is unset.
</p>
</dd>
</dl><!-- net/http -->
@@ -796,7 +797,7 @@ func TestFoo(t *testing.T) {
<dl id="net/http/httputil"><dt><a href="/pkg/net/http/httputil/">net/http/httputil</a></dt>
<dd>
<p><!-- CL 260637 -->
- The <a href="/pkg/net/http/httputil/#ReverseProxy">ReverseProxy</a>
+ <a href="/pkg/net/http/httputil/#ReverseProxy"><code>ReverseProxy</code></a>
now flushes buffered data more aggressively when proxying
streamed responses with unknown body lengths.
</p>