From 97fdcd720766cfd82fdb7e61bc7412b0357c701b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 19 Feb 2013 16:11:49 +0100 Subject: [PATCH] Clarify tilde operator docs --- doc/01-basic-usage.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/01-basic-usage.md b/doc/01-basic-usage.md index 1c5c77b4e..f7238d60d 100644 --- a/doc/01-basic-usage.md +++ b/doc/01-basic-usage.md @@ -78,8 +78,10 @@ Version constraints can be specified in a few different ways. explained by example: `~1.2` is equivalent to `>=1.2,<2.0`, while `~1.2.3` is equivalent to `>=1.2.3,<1.3`. As you can see it is mostly useful for projects respecting semantic versioning. A common usage would be to mark the minimum - minor version you depend on, like `~1.2`, since in theory there should be no - backwards compatibility breaks until 2.0, that works well. + minor version you depend on, like `~1.2` (which allows anything up to, but not + including, 2.0). Since in theory there should be no backwards compatibility + breaks until 2.0, that works well. Another way of looking at it is that using + `~` specifies a minimum version, but allows the last digit specified to go up. By default only stable releases are taken into consideration. If you would like to also get RC, beta, alpha or dev versions of your dependencies you can do