Skip to content

Commit bf53dd8

Browse files
authoredJun 22, 2023
docs: add example for > comparator (#569)
Adds an example clarifying how greater-than comparator works. ## References Closes #275
1 parent abdd93d commit bf53dd8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ of primitive `operators` is:
159159
160160
For example, the comparator `>=1.2.7` would match the versions
161161
`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6`
162-
or `1.1.0`.
162+
or `1.1.0`. The comparator `>1` is equivalent to `>=2.0.0` and
163+
would match the versions `2.0.0` and `3.1.0`, but not the versions
164+
`1.0.1` or `1.1.0`.
163165
164166
Comparators can be joined by whitespace to form a `comparator set`,
165167
which is satisfied by the **intersection** of all of the comparators

0 commit comments

Comments
 (0)