Skip to content

Commit

Permalink
Docs: fix examples for prefer-numeric-literals (#9155)
Browse files Browse the repository at this point in the history
* wrong parseInt result

Number.parseInt("1F7", 16) -> 503

* fix second documentation error
  • Loading branch information
mobilutz authored and kaicataldo committed Oct 12, 2017
1 parent d7610f5 commit 2d8a303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/prefer-numeric-literals.md
Expand Up @@ -18,10 +18,10 @@ Examples of **incorrect** code for this rule:

parseInt("111110111", 2) === 503;
parseInt("767", 8) === 503;
parseInt("1F7", 16) === 255;
parseInt("1F7", 16) === 503;
Number.parseInt("111110111", 2) === 503;
Number.parseInt("767", 8) === 503;
Number.parseInt("1F7", 16) === 255;
Number.parseInt("1F7", 16) === 503;
```

Examples of **correct** code for this rule:
Expand Down

0 comments on commit 2d8a303

Please sign in to comment.