diff --git a/retry/retry_example_test.go b/retry/retry_example_test.go index 3ecb856..ac1d003 100644 --- a/retry/retry_example_test.go +++ b/retry/retry_example_test.go @@ -19,15 +19,11 @@ func ExampleContext() { return errors.New("error occurs") } - err := Retry(increaseNumber, + Retry(increaseNumber, RetryDuration(time.Microsecond*50), Context(ctx), ) - if err != nil { - return - } - fmt.Println(number) // Output: