Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorgall0ws <g4ll0ws@gmail.com>2019-08-05 18:34:43 +0300
committerisaacs <i@izs.me>2019-08-09 07:37:18 +0300
commit50cfe113da5fcc59c1d99b0dcf1050ace45803c7 (patch)
tree14582de84b32924054bc44f5c6e9fc6f6aa8fc1e /doc
parent45772af0ddca54b658cb2ba2182eec26d0a4729d (diff)
doc: fixed typo for Number.MAX_SAFE_INTEGER
Just replaced Integer.MAX_SAFE_INTEGER with Number.MAX_SAFE_INTEGER. PR-URL: https://github.com/npm/cli/pull/229 Credit: @gall0ws Close: #229 Reviewed-by: @isaacs
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/semver.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/misc/semver.md b/doc/misc/semver.md
index 1a93f022b..247c21e0d 100644
--- a/doc/misc/semver.md
+++ b/doc/misc/semver.md
@@ -407,5 +407,5 @@ All surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes `3.4.0`).
Only text which lacks digits will fail coercion (`version one` is not valid).
The maximum length for any semver component considered for coercion is 16 characters;
longer components will be ignored (`10000000000000000.4.7.4` becomes `4.7.4`).
-The maximum value for any semver component is `Integer.MAX_SAFE_INTEGER || (2**53 - 1)`;
+The maximum value for any semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`;
higher value components are invalid (`9999999999999999.4.7.4` is likely invalid).