Skip to content

Commit

Permalink
Fix prefer-string-slice typo docs
Browse files Browse the repository at this point in the history
This fixes a small typo in "fixible".
  • Loading branch information
dfdeagle47 committed Mar 2, 2020
1 parent ff41cb2 commit 26937f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-string-slice.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[`String#substr()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) and [`String#substring()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring) are the two lesser known legacy ways to slice a string. It's better to use [`String#slice()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) as it's a more popular option with clearer behavior that has a consistent [`Array` counterpart](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice).

This rule is fixible when no arguments are passed to the method.
This rule is fixable when no arguments are passed to the method.


## Fail
Expand Down

0 comments on commit 26937f4

Please sign in to comment.