Skip to content

Commit

Permalink
Review: Drop doc line and fix typo
Browse files Browse the repository at this point in the history
Review feedback:
#1129 (comment)
  • Loading branch information
Pål Sivertsen committed Oct 4, 2024
1 parent f003a4b commit 90d5d50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assert/assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2149,8 +2149,7 @@ func ErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{
), msgAndArgs...)
}

// NotErrorAs asserts that at none of the errors in err's chain matches target.
// This is the inverse of the ErrorAs function.
// NotErrorAs asserts that none of the errors in err's chain matches target.
func NotErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
Expand Down

0 comments on commit 90d5d50

Please sign in to comment.