Skip to content

Commit e01fae4

Browse files
committed
Auto merge of #4519 - leavehouse:patch-1, r=alexcrichton
Clarify dependencies documentation The snippet: ``` ... but not `2.0`. `0.0.x` is not considered ... ``` Looks very similar to `... but not 2.0.0.0.x is not considered ...`, when rendered, which is confusing. This adds a couple words to clarify.
2 parents b80a566 + 39269a1 commit e01fae4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ An update is allowed if the new version number does not modify the left-most
3131
non-zero digit in the major, minor, patch grouping. In this case, if we ran
3232
`cargo update -p time`, cargo would update us to version `0.1.13` if it was
3333
available, but would not update us to `0.2.0`. If instead we had specified the
34-
version string as `^1.0`, cargo would update to `1.1` but not `2.0`. `0.0.x` is
35-
not considered compatible with any other version.
34+
version string as `^1.0`, cargo would update to `1.1` but not `2.0`. The version
35+
`0.0.x` is not considered compatible with any other version.
3636

3737
Here are some more examples of caret requirements and the versions that would
3838
be allowed with them:

0 commit comments

Comments
 (0)