docs(tinyssert): make NewDisableAssertion docs follow revive's rules

This commit is contained in:
Guz
2025-02-26 19:24:25 -03:00
parent 25582aabf4
commit 81e36b8acc

View File

@@ -520,10 +520,10 @@ func isTest(name, prefix string) bool {
type disabledAssertions struct{} type disabledAssertions struct{}
// Creates a new implementation of Assertions that always return true, with the exception // NewDisabledAssertions creates a new implementation of Assertions that always return true, with
// of [Assertions.Fail] and [Assertions.FailNow] which returns false, and [Assertions.CallerInfo] // the exception of [Assertions.Fail] and [Assertions.FailNow] which returns false, and
// which returns the actual caller info (uses [CallerInfo] underlying). It is useful it you use // [Assertions.CallerInfo] which returns the actual caller info (uses [CallerInfo] underlying).
// assertions in production and want to disable them without changing any code. // It is useful it you use assertions in production and want to disable them without changing any code.
func NewDisabledAssertions() Assertions { func NewDisabledAssertions() Assertions {
return &disabledAssertions{} return &disabledAssertions{}
} }