docs: mention offline rustup docs in intro

This commit is contained in:
wuyangfan 2026-05-22 18:11:29 +08:00
parent 60b369a2fd
commit 5b3de563ea

View File

@ -4,5 +4,9 @@ Rust uses the `print!` and `println!` macros to print text to the console.
## Further information ## Further information
If you installed Rust with `rustup`, you can also open local, offline copies of
Rust's documentation with commands such as `rustup doc --book`,
`rustup doc --std` and `rustup doc --rust-by-example`.
- [Hello World](https://doc.rust-lang.org/rust-by-example/hello.html) - [Hello World](https://doc.rust-lang.org/rust-by-example/hello.html)
- [Formatted print](https://doc.rust-lang.org/rust-by-example/hello/print.html) - [Formatted print](https://doc.rust-lang.org/rust-by-example/hello/print.html)