Skip to content

Commit

Permalink
errors: improve wording in As doc comment
Browse files Browse the repository at this point in the history
"so" didn't have an antecedent.

Change-Id: I27f7b334decea7bc34bfa3f3f2d3a79874c6fe90
Reviewed-on: https://go-review.googlesource.com/c/go/+/360797
Trust: Josh Bleecher Snyder <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
josharian committed Nov 2, 2021
1 parent b246873 commit 79024cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors/wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79024cf

Please sign in to comment.