Skip to content

Commit 24cd81a

Browse files
authored
Merge pull request #1190 from vitalyisaev2/patch-1
Fix comment for `retry.Retry` function
2 parents 235864e + 63dea55 commit 24cd81a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

retry/retry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func WithPanicCallback(panicCallback func(e interface{})) panicCallbackOption {
227227
//
228228
// - retry operation returned nil as error
229229
//
230-
// Warning: if deadline without deadline or cancellation func Retry will be worked infinite
230+
// Warning: if context without deadline or cancellation func was passed, Retry will work infinitely.
231231
//
232232
// If you need to retry your op func on some logic errors - you must return RetryableError() from retryOperation
233233
func Retry(ctx context.Context, op retryOperation, opts ...Option) (finalErr error) {

0 commit comments

Comments
 (0)