Skip to content

Commit a5011cb

Browse files
mysticateagyandeeps
authored andcommitted
Docs: Fix a wrong examples' header of prefer-arrow-callback. (#6020)
1 parent 1484ede commit a5011cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/prefer-arrow-callback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ foo(function bar() {});
5757

5858
This is a `boolean` option and it is `true` by default. When set to `false`, this option allows the use of `this` without restriction and checks for dynamically assigned `this` values such as when using `Array.prototype.map` with a `context` argument. Normally, the rule will flag the use of `this` whenever a function does not use `bind()` to specify the value of `this` constantly.
5959

60-
Examples of **correct** code for the `{ "allowUnboundThis": false }` option:
60+
Examples of **incorrect** code for the `{ "allowUnboundThis": false }` option:
6161

6262
```js
6363
/*eslint prefer-arrow-callback: ["error", { "allowUnboundThis": false }]*/

0 commit comments

Comments
 (0)