Skip to content

Commit 1649ee2

Browse files
authored
fix grammar, and remove confusing example (#15457)
Also, lots of commands need to contact the registry, so seeing an example gives me doubt.
2 parents 4a7e881 + 656263f commit 1649ee2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/doc/src/reference/source-replacement.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ dependencies through the usage of [the `[patch]` key][overriding
2626
dependencies], and private registry support is described in [the Registries
2727
chapter][registries].
2828

29-
When using source replacement, running commands like `cargo publish` that need to
30-
contact the registry requires passing the `--registry` option. This helps avoid
29+
When using source replacement, running commands that need to
30+
contact the registry directly[^1] requires passing the `--registry` option. This helps avoid
3131
any ambiguity about which registry to contact, and will use the authentication
3232
token for the specified registry.
3333

34+
[^1]: Examples of such commands are in [Publishing Commands].
35+
36+
[Publishing Commands]: ../commands/publishing-commands.md
3437
[overriding dependencies]: overriding-dependencies.md
3538
[registries]: registries.md
3639

0 commit comments

Comments
 (0)