From 5046cb8a6e8496f70e47f648ed368ffe87bc5e4e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 15 Dec 2020 10:36:10 +0100 Subject: [PATCH] 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 Reviewed-by: Dmitri Shuralyov --- doc/go1.16.html | 13 +++++++------ 1 file 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) {

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 ErrClosed error. - A typical use would be errors.Is(err, net.ErrClosed). + be detected using the new ErrClosed + error. A typical use would be errors.Is(err, net.ErrClosed). In earlier releases the only way to reliably detect this case was to match the string returned by the Error method with "use of closed network connection". @@ -786,9 +786,10 @@ func TestFoo(t *testing.T) {

- The ProxyFromEnvironment function - no longer returns the setting of the HTTP_PROXY environment - variable for https:// URLs when HTTPS_PROXY is unset. + The ProxyFromEnvironment + function no longer returns the setting of the HTTP_PROXY + environment variable for https:// URLs when + HTTPS_PROXY is unset.

@@ -796,7 +797,7 @@ func TestFoo(t *testing.T) {
net/http/httputil

- The ReverseProxy + ReverseProxy now flushes buffered data more aggressively when proxying streamed responses with unknown body lengths.