aboutsummaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2021-11-02 11:05:03 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2021-11-02 20:59:34 +0000
commit79024cf33d0cea53a0c75f428d79a9f971f12b5b (patch)
treed446a99f1e3a5094a78706fea2e0394a20a74322 /src/errors
parentb24687394b55a93449e2be4e6892ead58ea9a10f (diff)
downloadgo-79024cf33d0cea53a0c75f428d79a9f971f12b5b.tar.gz
go-79024cf33d0cea53a0c75f428d79a9f971f12b5b.zip
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 <josharian@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/errors')
-rw-r--r--src/errors/wrap.go2
1 files changed, 1 insertions, 1 deletions
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