Skip to content

Commit 781de47

Browse files
Fix documented example for prefer-catch rule
1 parent 5da83c4 commit 781de47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/prefer-catch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ errors will be handled.
1414
The second argument of a `then` call may be thought to handle any errors in the
1515
first argument, but it will only handle errors earlier in the Promise chain.
1616

17-
Examples of **incorrect** code for this rule:
17+
Examples of **correct** code for this rule:
1818

1919
```js
2020
prom.then(fn1).then(fn2)

0 commit comments

Comments
 (0)