summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2020-07-08 14:04:12 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2020-07-08 14:04:12 +0200
commit88b077b1cc19a4754ef004ff0ca07c3d2bb8ef19 (patch)
treeca5ab2f6b3beeb166f4d2982a3489dd6a25a264b
parent7ccc7244103d84e228f23b0bffa225c2d2f3d295 (diff)
downloadsemantic-version-88b077b1cc19a4754ef004ff0ca07c3d2bb8ef19.tar.gz
Fix SimpleSpec doc in README.rst.
As caught by Emilio Reyes. Closes #103.
-rw-r--r--README.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 40959c4..1cb21e5 100644
--- a/README.rst
+++ b/README.rst
@@ -181,8 +181,10 @@ Simpler test syntax is also available using the ``in`` keyword:
.. code-block:: pycon
>>> s = SimpleSpec('==0.1.1')
- >>> Version('0.1.1-alpha1') in s
+ >>> Version('0.1.1+git7ccc72') in s # build variants are equivalent to full versions
True
+ >>> Version('0.1.1-alpha1') in s # pre-release variants don't match the full version.
+ False
>>> Version('0.1.2') in s
False