Skip to content

Commit c9a658a

Browse files
committed
doc (book)[02/14]: "Introduction": add links to glossary for key terms
No language changes; just make these existing terms link to their corresponding entries in the glossary: - crate - package - package manager - package registry
1 parent 37a6c8d commit c9a658a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/doc/src/index.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22

33
![Cargo Logo](images/Cargo-Logo-Small.png)
44

5-
Cargo is the [Rust] *package manager*. Cargo downloads your Rust packages
5+
Cargo is the [Rust] [*package manager*][def-package-manager]. Cargo downloads your Rust [package][def-package]'s
66
dependencies, compiles your packages, makes distributable packages, and uploads them to
7-
[crates.io], the Rust community’s *package registry*. You can contribute
7+
[crates.io], the Rust community’s [*package registry*][def-package-registry]. You can contribute
88
to this book on [GitHub].
99

1010

1111
### Sections
1212

1313
**[Getting Started](getting-started/index.md)**
1414

15-
To get started with Cargo, install Cargo (and Rust) and set up your first crate.
15+
To get started with Cargo, install Cargo (and Rust) and set up your first
16+
[*crate*][def-crate].
1617

1718
**[Cargo Guide](guide/index.md)**
1819

@@ -39,6 +40,10 @@ The commands will let you interact with Cargo using its command-line interface.
3940
* [Rust documentation website](https://doc.rust-lang.org/) — Links to official
4041
Rust documentation and tools.
4142

43+
[def-crate]: ./appendix/glossary.md#crate '"crate" (glossary entry)'
44+
[def-package]: ./appendix/glossary.md#package '"package" (glossary entry)'
45+
[def-package-manager]: ./appendix/glossary.md#package-manager '"package manager" (glossary entry)'
46+
[def-package-registry]: ./appendix/glossary.md#package-registry '"package registry" (glossary entry)'
4247
[rust]: https://www.rust-lang.org/
4348
[crates.io]: https://crates.io/
4449
[GitHub]: https://github.com/rust-lang/cargo/tree/master/src/doc

0 commit comments

Comments
 (0)