]> Cypherpunks.ru repositories - gostls13.git/commitdiff
errors: improve wording in As doc comment
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 2 Nov 2021 18:05:03 +0000 (11:05 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 2 Nov 2021 20:59:34 +0000 (20:59 +0000)
"so" didn't have an antecedent.

Change-Id: I27f7b334decea7bc34bfa3f3f2d3a79874c6fe90
Reviewed-on: https://go-review.googlesource.com/c/go/+/360797
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/errors/wrap.go

index b73d5a8ce29f3ff7902f2f356d9d4f3108db785a..ab3cdb86d31f5ed8a812158f43227ed1b4c9347f 100644 (file)
@@ -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