docs(zh): update translations for 2026-07 upstream sync Sync po/zh.po with the latest source and translate the new/changed strings introduced upstream since the 2025-08 update: - 32 newly translated entries (previously untranslated) - 42 retranslated entries (source text changed upstream) - 15 obsolete strings removed from source dropped Main chapters affected: hello/comment (comment section rework), trait/clone (new "Copy: Implicit Cloning" section), fn/closures iter_find, generics/new_types (miles/marathon example), trait/drop, hello/print/fmt. Now 100% translated (2959/2959); msgfmt --check clean.
Learn Rust with examples (Live code editor included)
If you'd like to read Rust by Example, you can visit https://doc.rust-lang.org/rust-by-example/ to read it online.
If you'd like to read it locally, install Rust, and then:
git clone https://github.com/rust-lang/rust-by-example cd rust-by-example cargo install mdbook mdbook build mdbook serve
To be able to run the examples, you must be connected to the internet; you can read all content offline, however!
The following warnings can be ignored safely.
WARN The command `mdbook-gettext` for preprocessor `gettext` was not found, but is marked as optional.
If there is a translated resource in po/ directory, it can be specified through MDBOOK_BOOK__LANGUAGE like below:
git clone https://github.com/rust-lang/rust-by-example cd rust-by-example cargo install mdbook MDBOOK_BOOK__LANGUAGE=ja mdbook build MDBOOK_BOOK__LANGUAGE=ja mdbook serve
Please see the CONTRIBUTING.md file for more details.
Please see the TRANSLATING.md file for more details.
Rust by Example is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Rust by Example by you, as defined in the Apache-2.0 license, shall be dually licensed as above, without any additional terms or conditions.