Skip to content

Commit ec3909e

Browse files
committed
doc: fix some stale URLs
1 parent 7039064 commit ec3909e

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/doc/src/guide/dependencies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ use. This example adds a dependency of the `time` crate:
2020
time = "0.1.12"
2121
```
2222

23-
The version string is a [semver] version requirement. The [specifying
23+
The version string is a [SemVer] version requirement. The [specifying
2424
dependencies](../reference/specifying-dependencies.md) docs have more information about
2525
the options you have here.
2626

27-
[semver]: https://github.com/steveklabnik/semver#requirements
27+
[SemVer]: https://semver.org
2828

2929
If we also wanted to add a dependency on the `regex` crate, we would not need
3030
to add `[dependencies]` for each crate listed. Here's what your whole

src/doc/src/reference/registries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ explaining the format of the entry.
222222
// this is the new name. The original package name is stored in
223223
// the `package` field.
224224
"name": "rand",
225-
// The semver requirement for this dependency.
225+
// The SemVer requirement for this dependency.
226226
// This must be a valid version requirement defined at
227-
// https://github.com/steveklabnik/semver#requirements.
227+
// https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html.
228228
"req": "^0.6",
229229
// Array of features (as strings) enabled for this dependency.
230230
"features": ["i128_support"],

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ time = "0.1.12"
2121

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
24-
versions and allows SemVer compatible updates. An update is allowed if the new
24+
versions and allows [SemVer] compatible updates. An update is allowed if the new
2525
version number does not modify the left-most non-zero digit 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`,
2929
cargo should update to `1.1` if it is the latest `1.y` release, but not `2.0`.
3030
The version `0.0.x` is not considered compatible with any other version.
3131

32+
[SemVer]: https://semver.org
33+
3234
Here are some more examples of version requirements and the versions that would
3335
be allowed with them:
3436

@@ -48,8 +50,8 @@ versions before 1.0.0. While SemVer says there is no compatibility before
4850
1.0.0, Cargo considers `0.x.y` to be compatible with `0.x.z`, where `y ≥ z`
4951
and `x > 0`.
5052

51-
It is possible to further tweak the logic for selecting compatible version using
52-
special operators, though it shouldn't be necessary most of the time.
53+
It is possible to further tweak the logic for selecting compatible versions
54+
using special operators, though it shouldn't be necessary most of the time.
5355

5456
### Caret requirements
5557

0 commit comments

Comments
 (0)