summaryrefslogtreecommitdiff
path: root/docs/reference.rst
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2019-08-23 19:26:24 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2019-08-24 15:13:09 +0200
commitc24f4e2157438be40b44e6ba02d90c6bfa934454 (patch)
tree66ecf2747c6a605688c0a934d94bab539085c11e /docs/reference.rst
parent13902f1812697bac01ea1172663a6eedd20ac9d5 (diff)
downloadsemantic-version-c24f4e2157438be40b44e6ba02d90c6bfa934454.tar.gz
Fix inconsistent matching behaviour.
According to the stated goal of "intuitive" behaviour, we want: ``Version('0.1.1-a1') not in Spec('<0.1.1')``. Tests, code and docs have been fixed.
Diffstat (limited to 'docs/reference.rst')
-rw-r--r--docs/reference.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/reference.rst b/docs/reference.rst
index f9b4aed..a7fce0b 100644
--- a/docs/reference.rst
+++ b/docs/reference.rst
@@ -330,8 +330,8 @@ does not map well onto `SemVer`_ precedence rules:
In order to have version specification behave naturally, the rules are the following:
-* If no pre-release number was included in the specification, pre-release numbers
- are ignored when deciding whether a version satisfies a specification.
+* If no pre-release number was included in the specification, versions with a pre-release
+ numbers are excluded from matching that specification.
* If no build metadata was included in the specification, build metadata is ignored
when deciding whether a version satisfies a specification.