From 781de47fc252e07f25e8451f0b48c9d43d960c0c Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 1 Mar 2025 12:32:46 +0000 Subject: [PATCH] Fix documented example for prefer-catch rule --- docs/rules/prefer-catch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/prefer-catch.md b/docs/rules/prefer-catch.md index 809cc468..08822687 100644 --- a/docs/rules/prefer-catch.md +++ b/docs/rules/prefer-catch.md @@ -14,7 +14,7 @@ errors will be handled. The second argument of a `then` call may be thought to handle any errors in the first argument, but it will only handle errors earlier in the Promise chain. -Examples of **incorrect** code for this rule: +Examples of **correct** code for this rule: ```js prom.then(fn1).then(fn2)