diff --git a/README.md b/README.md index fb0b252..2dc3f3f 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# Rust 程序设计语言(2021 edition 施工中)简体中文版 +# Rust 程序设计语言(2021 edition)简体中文版 ![Build Status](https://github.com/KaiserY/trpl-zh-cn/workflows/CI/badge.svg) ## 状态 -施工中。 +施工完毕。 PS: diff --git a/src/appendix-04-useful-development-tools.md b/src/appendix-04-useful-development-tools.md index 3e6bb4d..01fa771 100644 --- a/src/appendix-04-useful-development-tools.md +++ b/src/appendix-04-useful-development-tools.md @@ -2,7 +2,7 @@ > [appendix-04-useful-development-tools.md](https://github.com/rust-lang/book/blob/main/src/appendix-04-useful-development-tools.md) >
-> commit efbafdba3618487fbc9305318fcab9775132ac15 +> commit 5057f157cd0b35bc7d0dc0af6ef622fa4c480996 本附录,我们将讨论 Rust 项目提供的用于开发 Rust 代码的工具。 @@ -116,14 +116,15 @@ fn main() { 在此项目上运行 `cargo clippy` 会导致这个错误: ```text -error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly +error: approximate value of `f{32, 64}::consts::PI` found --> src/main.rs:2:13 | 2 | let x = 3.1415; | ^^^^^^ | - = note: #[deny(clippy::approx_constant)] on by default - = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/master/index.html#approx_constant + = note: `#[deny(clippy::approx_constant)]` on by default + = help: consider using the constant directly + = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant ``` 这告诉我们 Rust 定义了更为精确的常量,而如果使用了这些常量程序将更加准确。如下代码就不会导致 `clippy` 产生任何错误或警告: diff --git a/src/appendix-06-translation.md b/src/appendix-06-translation.md index 3811ce4..0c58a15 100644 --- a/src/appendix-06-translation.md +++ b/src/appendix-06-translation.md @@ -2,7 +2,7 @@ > [appendix-06-translation.md](https://github.com/rust-lang/book/blob/main/src/appendix-06-translation.md) >
-> commit f77e8c47bd04dd68094aaa7483e9dbf4d7386b8c +> commit 4c8d13c52c51f1c62a80b52d7fbd7cc0b63ada43 一些非英语语言的资源。多数仍在翻译中;查阅 [翻译标签][label] 来帮助翻译,或者添加译本链接! @@ -14,7 +14,7 @@ - [正體中文](https://github.com/rust-tw/book-tw) - [Українська](https://github.com/pavloslav/rust-book-uk-ua) - [Español](https://github.com/thecodix/book), [alternate](https://github.com/ManRR/rust-book-es) -- [Italiano](https://github.com/Ciro-Fusco/book_it) +- [Italiano](https://github.com/EmanueleGurini/book_it) - [Русский](https://github.com/rust-lang-ru/book) - [한국어](https://github.com/rinthel/rust-lang-book-ko) - [日本語](https://github.com/rust-lang-ja/book-ja) @@ -27,7 +27,6 @@ - [Svenska](https://github.com/sebras/book) - [Farsi](https://github.com/pomokhtari/rust-book-fa) - [Deutsch](https://github.com/rust-lang-de/rustbook-de) -- [Turkish](https://github.com/RustDili/dokuman/tree/master/ceviriler), [online](https://rustdili.github.io/) - [हिंदी](https://github.com/venkatarun95/rust-book-hindi) - [ไทย](https://github.com/rust-lang-th/book-th) - [Danske](https://github.com/DanKHansen/book-dk)