Skip to content

Commit 84619f5

Browse files
authored
fix: grammar in godoc for NotErrorIs(f) functions (#1607)
Grammar fixes in doc: _asserts that at none_ -> _asserts that none_ $ grep 'that at none' */*.go assert/assertion_format.go:// NotErrorIsf asserts that at none of the errors in err's chain matches target. assert/assertion_forward.go:// NotErrorIs asserts that at none of the errors in err's chain matches target. assert/assertion_forward.go:// NotErrorIsf asserts that at none of the errors in err's chain matches target. assert/assertions.go:// NotErrorIs asserts that at none of the errors in err's chain matches target. require/require.go:// NotErrorIs asserts that at none of the errors in err's chain matches target. require/require.go:// NotErrorIsf asserts that at none of the errors in err's chain matches target. require/require_forward.go:// NotErrorIs asserts that at none of the errors in err's chain matches target. require/require_forward.go:// NotErrorIsf asserts that at none of the errors in err's chain matches target.
1 parent 1b4fca7 commit 84619f5

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

‎assert/assertion_format.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎assert/assertion_forward.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎assert/assertions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,7 @@ func ErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) bool {
20942094
), msgAndArgs...)
20952095
}
20962096

2097-
// NotErrorIs asserts that at none of the errors in err's chain matches target.
2097+
// NotErrorIs asserts that none of the errors in err's chain matches target.
20982098
// This is a wrapper for errors.Is.
20992099
func NotErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) bool {
21002100
if h, ok := t.(tHelper); ok {

‎require/require.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎require/require_forward.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)