Skip to content

Commit 79a8cd6

Browse files
jneidelsindresorhus
authored andcommitted
Fix prefer-includes example (#264)
1 parent 2f8f3d3 commit 79a8cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/prefer-includes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ x.indexOf('foo') === -1
1717
## Pass
1818

1919
```js
20-
const x = 'foobar';
20+
const str = 'foobar';
2121
str.indexOf('foo') !== -n;
2222
str.indexOf('foo') !== 1;
2323
!str.indexOf('foo') === 1;

0 commit comments

Comments
 (0)