Skip to content

Commit 56275f8

Browse files
authored
Rollup merge of #39725 - Aaronepower:master, r=steveklabnik
Updated nightly book with installing nightly instructions
2 parents 0e6b370 + 5c29511 commit 56275f8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/doc/book/nightly-rust.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,42 @@ process, see ‘[Stability as a deliverable][stability]’.
66

77
[stability]: http://blog.rust-lang.org/2014/10/30/Stability.html
88

9-
To install nightly Rust, you can use `rustup.sh`:
9+
To install nightly Rust, you can use [rustup.rs][rustup]:
10+
11+
[rustup]: https://rustup.rs
1012

1113
```bash
12-
$ curl -s https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
14+
$ curl https://sh.rustup.rs -sSf | sh
15+
$ rustup install nightly
1316
```
1417

1518
If you're concerned about the [potential insecurity][insecurity] of using `curl
1619
| sh`, please keep reading and see our disclaimer below. And feel free to
1720
use a two-step version of the installation and examine our installation script:
1821

1922
```bash
20-
$ curl -f -L https://static.rust-lang.org/rustup.sh -O
21-
$ sh rustup.sh --channel=nightly
23+
$ curl https://sh.rustup.rs -sSf -o rustup.sh
24+
$ sh rustup.sh
25+
$ rustup install nightly
2226
```
2327

2428
[insecurity]: http://curlpipesh.tumblr.com
2529

26-
If you're on Windows, please download either the [32-bit installer][win32] or
27-
the [64-bit installer][win64] and run it.
30+
If you're on Windows, please download the [rustup installer][installer]
31+
and run it.
2832

29-
[win32]: https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.msi
30-
[win64]: https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-gnu.msi
33+
[installer]: https://win.rustup.rs
3134

3235
## Uninstalling
3336

3437
If you decide you don't want Rust anymore, we'll be a bit sad, but that's okay.
3538
Not every programming language is great for everyone. Just run the uninstall
36-
script:
39+
command:
3740

3841
```bash
39-
$ sudo /usr/local/lib/rustlib/uninstall.sh
42+
$ rustup self uninstall
4043
```
4144

42-
If you used the Windows installer, re-run the `.msi` and it will give you
43-
an uninstall option.
44-
4545
Some people, and somewhat rightfully so, get very upset when we tell you to
4646
`curl | sh`. Basically, when you do this, you are trusting that the good
4747
people who maintain Rust aren't going to hack your computer and do bad things.

0 commit comments

Comments
 (0)