diff --git a/docs/index.md b/docs/index.md index 8772205..9e6302c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -205,11 +205,11 @@ $baseTimeMs = 1000; $backOff = new ExponentialBackOff($maxAttempts, $baseTimeMs); -$classifier = new ExceptionClassifier([ +$exceptionClassifier = new ExceptionClassifier([ \RuntimeException::class, ]); -$retry = new Retry($backOff, $classifier); +$retry = new Retry($backOff, $exceptionClassifier); ``` Put the business logic in a callback function and call it: