From 6f6942ef7afc34c6b7e1eea3031ed61acc458d2a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 7 Apr 2022 13:02:35 -0700 Subject: [PATCH] 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 --- doc/go1.19.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.48.1