Skip to content

Commit caadb42

Browse files
committed
Auto merge of #4432 - potocpav:patch-1, r=matklad
Correct a paragraph The previous formulation was incorrect in the descriptions of the `x` and `y` version numbers.
2 parents 5450163 + a3cfa32 commit caadb42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/specifying-dependencies.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ be allowed with them:
4747
^0 := >=0.0.0 <1.0.0
4848
```
4949

50-
While SemVer says that there is no compatibility before 1.0.0, many programmers
51-
treat a `0.x.y` release in the same way as a `1.x.y` release: that is, `y` is
52-
incremented for bugfixes, and `x` is incremented for new features. As such,
53-
Cargo considers a `0.x.y` and `0.x.z` version, where `z > y`, to be compatible.
50+
This compatibility convention is different from SemVer in the way it treats
51+
versions before 1.0.0. While SemVer says there is no compatibility before
52+
1.0.0, Cargo considers `0.x.y` to be compatible with `0.x.z`, where `y ≥ z`
53+
and `x > 0`.
5454

5555
## Tilde requirements
5656

0 commit comments

Comments
 (0)