diff --git a/require/require.go.tmpl b/require/require.go.tmpl index ded85af..11cca94 100644 --- a/require/require.go.tmpl +++ b/require/require.go.tmpl @@ -1,5 +1,5 @@ {{ replace .Comment "assert." "require."}} -// Instead of returning a boolean result this function calls `t.FailNow()` on failure. +// Failure of this check is fatal ([testing.T.FailNow] is called on failure). func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { if h, ok := t.(tHelper); ok { h.Helper() } if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }