From: Josh Bleecher Snyder Date: Tue, 2 Nov 2021 18:05:03 +0000 (-0700) Subject: errors: improve wording in As doc comment X-Git-Tag: go1.18beta1~596 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=79024cf33d0cea53a0c75f428d79a9f971f12b5b;p=gostls13.git errors: improve wording in As doc comment "so" didn't have an antecedent. Change-Id: I27f7b334decea7bc34bfa3f3f2d3a79874c6fe90 Reviewed-on: https://go-review.googlesource.com/c/go/+/360797 Trust: Josh Bleecher Snyder Reviewed-by: Ian Lance Taylor --- diff --git a/src/errors/wrap.go b/src/errors/wrap.go index b73d5a8ce2..ab3cdb86d3 100644 --- a/src/errors/wrap.go +++ b/src/errors/wrap.go @@ -59,7 +59,7 @@ func Is(err, target error) bool { } } -// As finds the first error in err's chain that matches target, and if so, sets +// As finds the first error in err's chain that matches target, and if one is found, sets // target to that error value and returns true. Otherwise, it returns false. // // The chain consists of err itself followed by the sequence of errors obtained by