Skip to content

Commit 04c94d9

Browse files
committed
Auto merge of #12340 - nicoburns:patch-1, r=weihanglo
Minor: Use "number" instead of "digit" when explaining Cargo's use of semver Digit is technically incorrect here, as it would imply that Cargo treats 0.10.0 and 0.11.0 as semver compatible (because they have the same leftmost non-zero *digit*, even though they do not have the same leftmost non-zero *number*).
2 parents 0e5f3b6 + a35b0f3 commit 04c94d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/doc/src/reference/specifying-dependencies.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ time = "0.1.12"
2222
The string `"0.1.12"` is a version requirement. Although it looks like a
2323
specific *version* of the `time` crate, it actually specifies a *range* of
2424
versions and allows [SemVer] compatible updates. An update is allowed if the new
25-
version number does not modify the left-most non-zero digit in the major, minor,
25+
version number does not modify the left-most non-zero number in the major, minor,
2626
patch grouping. In this case, if we ran `cargo update -p time`, cargo should
2727
update us to version `0.1.13` if it is the latest `0.1.z` release, but would not
2828
update us to `0.2.0`. If instead we had specified the version string as `1.0`,

0 commit comments

Comments
 (0)