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{}
// Creates a new implementation of Assertions that always return true, with the exception
// of [Assertions.Fail] and [Assertions.FailNow] which returns false, and [Assertions.CallerInfo]
// which returns the actual caller info (uses [CallerInfo] underlying). It is useful it you use
// assertions in production and want to disable them without changing any code.
// NewDisabledAssertions creates a new implementation of Assertions that always return true, with
// the exception of [Assertions.Fail] and [Assertions.FailNow] which returns false, and
// [Assertions.CallerInfo] which returns the actual caller info (uses [CallerInfo] underlying).
// It is useful it you use assertions in production and want to disable them without changing any code.
func NewDisabledAssertions() Assertions {
return &disabledAssertions{}
}