Skip to content

Commit

Permalink
Fix prefer-includes example (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
jneidel authored and sindresorhus committed Mar 27, 2019
1 parent 2f8f3d3 commit 79a8cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-includes.md
Expand Up @@ -17,7 +17,7 @@ x.indexOf('foo') === -1
## Pass

```js
const x = 'foobar';
const str = 'foobar';
str.indexOf('foo') !== -n;
str.indexOf('foo') !== 1;
!str.indexOf('foo') === 1;
Expand Down

0 comments on commit 79a8cd6

Please sign in to comment.