mirror of
https://github.com/semver/semver.git
synced 2025-08-22 13:58:33 +00:00
Make notice about leading zeros clearer
It was very unclear to me that "must not contain leading zeroes" is referring to "non-negative integers" rather than to "A normal version number". First (correct) interpretation would disallow 1.01.1, second (incorrect) would disallow 0.1.0. I tried to make it more explicit here.
This commit is contained in:
parent
255bc951da
commit
f6424542c4
@ -61,8 +61,8 @@ could be declared in the code itself or exist strictly in documentation.
|
||||
However it is done, it should be precise and comprehensive.
|
||||
|
||||
1. A normal version number MUST take the form X.Y.Z where X, Y, and Z are
|
||||
non-negative integers, and MUST NOT contain leading zeroes. X is the
|
||||
major version, Y is the minor version, and Z is the patch version.
|
||||
non-negative integers. Elements (X, Y and Z) MUST NOT contain leading zeroes.
|
||||
X is the major version, Y is the minor version, and Z is the patch version.
|
||||
Each element MUST increase numerically. For instance: 1.9.0 -> 1.10.0 -> 1.11.0.
|
||||
|
||||
1. Once a versioned package has been released, the contents of that version
|
||||
|
Loading…
Reference in New Issue
Block a user