]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.19: use the right package error.Is arguments
authorIan Lance Taylor <iant@golang.org>
Thu, 7 Apr 2022 20:02:35 +0000 (13:02 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 7 Apr 2022 20:39:32 +0000 (20:39 +0000)
They were swapped.

Fixes #52205

Change-Id: Iea2626aa2204f3bc96d08c571a1aa669436a32ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/398895
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
doc/go1.19.html

index 5c48302bf78293f3baef61820db847d5073e5683..c1523c57ecb81abc5c364359f2f8c8881712e023 100644 (file)
@@ -106,9 +106,9 @@ Do not send CLs removing the interior tags from such phrases.
     <p><!-- CL 396877 -->
       When a net package function or method returns an "I/O timeout"
       error, the error will now satisfy <code>errors.Is(err,
-      context.Canceled)</code>.  When a net package function returns
-      an "operation was canceled" error, the error will now satisfy
-      <code>errors.Is(err, context.DeadlineExceeded)</code>.
+      context.DeadlineExceeded)</code>.  When a net package function
+      returns an "operation was canceled" error, the error will now
+      satisfy <code>errors.Is(err, context.Canceled)</code>.
       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