From 2d8a303ff70943b29dab6c88478c278efdf15340 Mon Sep 17 00:00:00 2001 From: Lutz Lengemann Date: Thu, 12 Oct 2017 20:45:22 +0200 Subject: [PATCH] Docs: fix examples for prefer-numeric-literals (#9155) * wrong parseInt result Number.parseInt("1F7", 16) -> 503 * fix second documentation error --- docs/rules/prefer-numeric-literals.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rules/prefer-numeric-literals.md b/docs/rules/prefer-numeric-literals.md index 58902e471b8..965fd529b72 100644 --- a/docs/rules/prefer-numeric-literals.md +++ b/docs/rules/prefer-numeric-literals.md @@ -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: