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>
This commit is contained in:
Tobias Klauser 2020-12-15 10:36:10 +01:00 committed by Tobias Klauser
parent 3298300ddf
commit 5046cb8a6e

View file

@ -721,8 +721,8 @@ func TestFoo(t *testing.T) {
<p><!-- CL 250357 --> <p><!-- CL 250357 -->
The case of I/O on a closed network connection, or I/O on a network 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 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. be detected using the new <a href="/pkg/net/#ErrClosed"><code>ErrClosed</code></a>
A typical use would be <code>errors.Is(err, net.ErrClosed)</code>. 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 In earlier releases the only way to reliably detect this case was to
match the string returned by the <code>Error</code> method match the string returned by the <code>Error</code> method
with <code>"use of closed network connection"</code>. with <code>"use of closed network connection"</code>.
@ -786,9 +786,10 @@ func TestFoo(t *testing.T) {
</p> </p>
<p><!-- CL 249440 --> <p><!-- CL 249440 -->
The <a href="/pkg/net/http/#ProxyFromEnvironment">ProxyFromEnvironment</a> function The <a href="/pkg/net/http/#ProxyFromEnvironment"><code>ProxyFromEnvironment</code></a>
no longer returns the setting of the <code>HTTP_PROXY</code> environment function no longer returns the setting of the <code>HTTP_PROXY</code>
variable for <code>https://</code> URLs when <code>HTTPS_PROXY</code> is unset. environment variable for <code>https://</code> URLs when
<code>HTTPS_PROXY</code> is unset.
</p> </p>
</dd> </dd>
</dl><!-- net/http --> </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> <dl id="net/http/httputil"><dt><a href="/pkg/net/http/httputil/">net/http/httputil</a></dt>
<dd> <dd>
<p><!-- CL 260637 --> <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 now flushes buffered data more aggressively when proxying
streamed responses with unknown body lengths. streamed responses with unknown body lengths.
</p> </p>