Skip to content

Commit c44e7d8

Browse files
committed
Remove redundant empty lines and trailing spaces from specifying-dependencies.md
1 parent db84fba commit c44e7d8

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This is different from [SemVer] which considers all pre-1.0.0 packages to be inc
5050

5151
### Caret requirements
5252

53-
**Caret requirements** are the default version requirement strategy.
53+
**Caret requirements** are the default version requirement strategy.
5454
This version strategy allows [SemVer] compatible updates.
5555
They are specified as version requirements with a leading caret (`^`).
5656

@@ -213,7 +213,7 @@ regex = { git = "https://github.com/rust-lang/regex.git" }
213213
```
214214

215215
Cargo fetches the `git` repository at that location and traverses the file tree to find
216-
`Cargo.toml` file for the requested crate anywhere inside the `git` repository.
216+
`Cargo.toml` file for the requested crate anywhere inside the `git` repository.
217217
For example, `regex-lite` and `regex-syntax` are members of `rust-lang/regex` repo
218218
and can be referred to by the repo's root URL (`https://github.com/rust-lang/regex.git`)
219219
regardless of where in the file tree they reside.
@@ -240,7 +240,7 @@ regex = { git = "https://github.com/rust-lang/regex.git", branch = "next" }
240240

241241
Anything that is not a branch or a tag falls under `rev` key. This can be a commit
242242
hash like `rev = "4c59b707"`, or a named reference exposed by the remote
243-
repository such as `rev = "refs/pull/493/head"`.
243+
repository such as `rev = "refs/pull/493/head"`.
244244

245245
What references are available for the `rev` key varies by where the repo is hosted.
246246
GitHub exposes a reference to the most recent commit of every pull request as in the example above.
@@ -280,7 +280,7 @@ The `version` key always implies that the package is available in a registry,
280280
regardless of the presence of `git` or `path` keys.
281281

282282
The `version` key does _not_ affect which commit is used when Cargo retrieves the `git` dependency,
283-
but Cargo checks the version information in the dependency's `Cargo.toml` file
283+
but Cargo checks the version information in the dependency's `Cargo.toml` file
284284
against the `version` key and raises an error if the check fails.
285285

286286
In this example, Cargo retrieves the HEAD commit of the branch called `next` from Git and checks if the crate's version
@@ -291,7 +291,7 @@ is compatible with `version = "1.10.3"`:
291291
regex = { version = "1.10.3", git = "https://github.com/rust-lang/regex.git", branch = "next" }
292292
```
293293

294-
`version`, `git`, and `path` keys are considered separate locations for resolving the dependency.
294+
`version`, `git`, and `path` keys are considered separate locations for resolving the dependency.
295295
See [Multiple locations](#multiple-locations) section below for detailed explanations.
296296

297297
> **Note**: [crates.io] does not allow packages to be published with
@@ -519,7 +519,6 @@ manifest:
519519
cc = "1.0.3"
520520
```
521521

522-
523522
You can also have target-specific build dependencies by using
524523
`build-dependencies` in the target section header instead of `dependencies`. For
525524
example:
@@ -647,7 +646,6 @@ cc.workspace = true
647646
rand = { workspace = true, optional = true }
648647
```
649648

650-
651649
[SemVer]: https://semver.org
652650
[crates.io]: https://crates.io/
653651
[dev-dependencies]: #development-dependencies

0 commit comments

Comments
 (0)