website: clarify version constraint syntax

This commit is contained in:
Repon Kumar Roy 2020-10-22 14:34:38 +06:00 committed by Nick Fagerlund
parent a058b64eb5
commit 34549b402b
1 changed files with 4 additions and 5 deletions

View File

@ -41,11 +41,10 @@ The following operators are valid:
versions for which the comparison is true. "Greater-than" requests newer versions for which the comparison is true. "Greater-than" requests newer
versions, and "less-than" requests older versions. versions, and "less-than" requests older versions.
- `~>`: Allows the specified version, plus newer versions that only - `~>`: Allows only the _rightmost_ version component to increment. For example,
increase the _most specific_ segment of the specified version number. For to allow new patch releases within a specific minor release, use the full
example, `~> 0.9` is equivalent to `>= 0.9, < 1.0`, and `~> 0.8.4`, is version number: `~> 1.0.4` will allow installation of `1.0.5` and `1.0.10`
equivalent to `>= 0.8.4, < 0.9`. This is usually called the pessimistic but not `1.1.0`. This is usually called the pessimistic constraint operator.
constraint operator.
## Version Constraint Behavior ## Version Constraint Behavior