From: Ian Lance Taylor Date: Thu, 7 Apr 2022 20:02:35 +0000 (-0700) Subject: doc/go1.19: use the right package error.Is arguments X-Git-Tag: go1.19beta1~737 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6f6942ef7afc34c6b7e1eea3031ed61acc458d2a;p=gostls13.git doc/go1.19: use the right package error.Is arguments They were swapped. Fixes #52205 Change-Id: Iea2626aa2204f3bc96d08c571a1aa669436a32ad Reviewed-on: https://go-review.googlesource.com/c/go/+/398895 Trust: Ian Lance Taylor Reviewed-by: Cherry Mui --- diff --git a/doc/go1.19.html b/doc/go1.19.html index 5c48302bf7..c1523c57ec 100644 --- a/doc/go1.19.html +++ b/doc/go1.19.html @@ -106,9 +106,9 @@ Do not send CLs removing the interior tags from such phrases.

When a net package function or method returns an "I/O timeout" error, the error will now satisfy errors.Is(err, - context.Canceled). When a net package function returns - an "operation was canceled" error, the error will now satisfy - errors.Is(err, context.DeadlineExceeded). + context.DeadlineExceeded). When a net package function + returns an "operation was canceled" error, the error will now + satisfy errors.Is(err, context.Canceled). These changes are intended to make it easier for code to test for cases in which a context cancelation or timeout causes a net package function or method to return an error, while preserving