Skip to content

Commit

Permalink
doc: fixed typo for Number.MAX_SAFE_INTEGER
Browse files Browse the repository at this point in the history
Just replaced Integer.MAX_SAFE_INTEGER with Number.MAX_SAFE_INTEGER.

PR-URL: #229
Credit: @gall0ws
Close: #229
Reviewed-by: @isaacs
  • Loading branch information
gall0ws authored and isaacs committed Aug 9, 2019
1 parent 45772af commit f0d03e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/misc/semver.md
Expand Up @@ -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).

0 comments on commit f0d03e1

Please sign in to comment.