Skip to content

Commit d30f9d9

Browse files
committed
Minor tweaks and some links.
1 parent 8dd80fb commit d30f9d9

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

doc/src/environment-variables.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
root `rustup` folder, used for storing installed toolchains and
55
configuration options.
66

7-
- `RUSTUP_TOOLCHAIN` (default: none) If set, will override the toolchain used
8-
for all rust tool invocations. A toolchain with this name should be
7+
- `RUSTUP_TOOLCHAIN` (default: none) If set, will [override] the toolchain
8+
used for all rust tool invocations. A toolchain with this name should be
99
installed, or invocations will fail.
1010

1111
- `RUSTUP_DIST_SERVER` (default: `https://static.rust-lang.org`) Sets the root
@@ -26,10 +26,7 @@
2626

2727
- `RUSTUP_TRACE_DIR` *unstable* (default: no tracing) Enables tracing and
2828
determines the directory that traces will be written too. Traces are of the
29-
form PID.trace. Traces can be read by the Catapult project [tracing
30-
viewer][tv].
31-
32-
[tv]: (https://github.com/catapult-project/catapult/blob/master/tracing/README.md)
29+
form PID.trace. Traces can be read by the Catapult project [tracing viewer].
3330

3431
- `RUSTUP_UNPACK_RAM` *unstable* (default 400M, min 100M) Caps the amount of
3532
RAM `rustup` will use for IO tasks while unpacking.
@@ -43,4 +40,6 @@
4340
feature sacrifices some transactions protections and may be removed at any
4441
point. Linux only.
4542

46-
[dc]: (https://docs.docker.com/storage/storagedriver/overlayfs-driver/#modifying-files-or-directories)
43+
[dc]: https://docs.docker.com/storage/storagedriver/overlayfs-driver/#modifying-files-or-directories
44+
[override]: overrides.md
45+
[tracing viewer]: https://github.com/catapult-project/catapult/blob/master/tracing/README.md

doc/src/examples.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
Command | Description
44
----------------------------------------------------------- | ------------------------------------------------------------
5-
`rustup default nightly` | Set the default toolchain to the latest nightly
6-
`rustup set profile minimal` | Set the default "profile" (see [profiles](#profiles))
7-
`rustup target list` | List all available targets for the active toolchain
5+
`rustup default nightly` | Set the [default toolchain] to the latest nightly
6+
`rustup set profile minimal` | Set the default [profile]
7+
`rustup target list` | List all available [targets] for the active toolchain
88
`rustup target add arm-linux-androideabi` | Install the Android target
99
`rustup target remove arm-linux-androideabi` | Remove the Android target
1010
`rustup run nightly rustc foo.rs` | Run the nightly regardless of the active toolchain
11-
`rustc +nightly foo.rs` | Shorthand way to run a nightly compiler
11+
`rustc +nightly foo.rs` | [Shorthand] way to run a nightly compiler
1212
`rustup run nightly bash` | Run a shell configured for the nightly compiler
1313
`rustup default stable-msvc` | On Windows, use the MSVC toolchain instead of GNU
1414
`rustup override set nightly-2015-04-01` | For the current directory, use a nightly from a specific date
@@ -17,3 +17,8 @@ Command | Description
1717
`rustup toolchain uninstall nightly` | Uninstall a given toolchain
1818
`rustup toolchain help` | Show the `help` page for a subcommand (like `toolchain`)
1919
`rustup man cargo` | \(*Unix only*\) View the man page for a given command (like `cargo`)
20+
21+
[default toolchain]: overrides.md#default-toolchain
22+
[profile]: concepts/profiles.md
23+
[shorthand]: overrides.md#toolchain-override-shorthand
24+
[targets]: cross-compilation.md

0 commit comments

Comments
 (0)