From 81e36b8accef6be4594d782558bd4a2784c66c1b Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Wed, 26 Feb 2025 19:24:25 -0300 Subject: [PATCH] docs(tinyssert): make NewDisableAssertion docs follow revive's rules --- tinyssert/tinyssert.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tinyssert/tinyssert.go b/tinyssert/tinyssert.go index 9835f8d..35cfa1a 100644 --- a/tinyssert/tinyssert.go +++ b/tinyssert/tinyssert.go @@ -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{} }