diff --git a/retry.go b/retry.go index c3c264ff..11f456d2 100644 --- a/retry.go +++ b/retry.go @@ -239,7 +239,7 @@ type transactionStep[T any] struct { onRollback func(T) T } -// NewTransaction instanciate a new transaction. +// NewTransaction instantiate a new transaction. func NewTransaction[T any]() *Transaction[T] { return &Transaction[T]{ steps: []transactionStep[T]{}, diff --git a/retry_test.go b/retry_test.go index 91ad651b..1ac00703 100644 --- a/retry_test.go +++ b/retry_test.go @@ -404,7 +404,7 @@ func TestDebounceBy(t *testing.T) { mu.Unlock() } -func TestTransation(t *testing.T) { +func TestTransaction(t *testing.T) { is := assert.New(t) // no error