From f6424542c4a691cfe9ff012dbf645c56b21c9cde Mon Sep 17 00:00:00 2001 From: Konstantin Zudov Date: Tue, 17 Nov 2015 22:56:23 +0200 Subject: [PATCH] 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. --- semver.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/semver.md b/semver.md index 0c060db..7814c82 100644 --- a/semver.md +++ b/semver.md @@ -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