Skip to content

Commit d809b5b

Browse files
committed
Auto merge of #6907 - lzutao:ver, r=ehuss
doc: Format examples of version to ease reading
2 parents 0f77ed5 + 8b29cbf commit d809b5b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/doc/src/reference/specifying-dependencies.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ Here are some more examples of caret requirements and the versions that would
4040
be allowed with them:
4141

4242
```notrust
43-
^1.2.3 := >=1.2.3 <2.0.0
44-
^1.2 := >=1.2.0 <2.0.0
45-
^1 := >=1.0.0 <2.0.0
46-
^0.2.3 := >=0.2.3 <0.3.0
47-
^0.2 := >= 0.2.0 < 0.3.0
48-
^0.0.3 := >=0.0.3 <0.0.4
49-
^0.0 := >=0.0.0 <0.1.0
50-
^0 := >=0.0.0 <1.0.0
43+
^1.2.3 := >=1.2.3 <2.0.0
44+
^1.2 := >=1.2.0 <2.0.0
45+
^1 := >=1.0.0 <2.0.0
46+
^0.2.3 := >=0.2.3 <0.3.0
47+
^0.2 := >=0.2.0 <0.3.0
48+
^0.0.3 := >=0.0.3 <0.0.4
49+
^0.0 := >=0.0.0 <0.1.0
50+
^0 := >=0.0.0 <1.0.0
5151
```
5252

5353
This compatibility convention is different from SemVer in the way it treats
@@ -65,9 +65,9 @@ version, then minor- and patch-level changes are allowed.
6565
`~1.2.3` is an example of a tilde requirement.
6666

6767
```notrust
68-
~1.2.3 := >=1.2.3 <1.3.0
69-
~1.2 := >=1.2.0 <1.3.0
70-
~1 := >=1.0.0 <2.0.0
68+
~1.2.3 := >=1.2.3 <1.3.0
69+
~1.2 := >=1.2.0 <1.3.0
70+
~1 := >=1.0.0 <2.0.0
7171
```
7272

7373
### Wildcard requirements
@@ -78,8 +78,8 @@ positioned.
7878
`*`, `1.*` and `1.2.*` are examples of wildcard requirements.
7979

8080
```notrust
81-
* := >=0.0.0
82-
1.* := >=1.0.0 <2.0.0
81+
* := >=0.0.0
82+
1.* := >=1.0.0 <2.0.0
8383
1.2.* := >=1.2.0 <1.3.0
8484
```
8585

0 commit comments

Comments
 (0)