Skip to content

Commit

Permalink
Fix Ok example (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess authored Aug 5, 2024
1 parent 9ab15aa commit 1083318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func NotEqualFunc[T any](t testing.TB, got, want T, equal func(a, b T) bool) {
// Ok fails if err != nil.
//
// err := doSomething()
// test.Ok(t, err, "Doing something")
// test.Ok(t, err)
func Ok(t testing.TB, err error) {
t.Helper()
if err != nil {
Expand Down

0 comments on commit 1083318

Please sign in to comment.