Skip to content

Commit

Permalink
docs: Clarify specifying deps, PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rimutaka committed Mar 5, 2024
1 parent d081ea7 commit eb2b0e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/src/reference/specifying-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ regex-lite = { git = "https://github.com/rust-lang/regex.git" }
regex-syntax = { git = "https://github.com/rust-lang/regex.git" }
```

The above rule does not apply to local paths specified via `path` key.
The above rule does not apply to [`path` dependencies](#specifying-path-dependencies).

### Choice of commit

Expand Down Expand Up @@ -248,7 +248,7 @@ regex = { git = "https://github.com/rust-lang/regex.git#4c59b70", path = "../reg
Cargo locks the commits of `git` dependencies in `Cargo.lock` file at the time of their addition
and checks for updates only when you run `cargo update` command.

### The role of _version_ key
### The role of the `version` key

The `version` key always implies that the package is available in a registry,
regardless of the presence of `git` or `path` keys.
Expand Down

0 comments on commit eb2b0e9

Please sign in to comment.