From cd06129a3d1da80f90a9f140940d7fcaec48c521 Mon Sep 17 00:00:00 2001 From: Turing Zhu Date: Tue, 19 Jun 2018 00:51:52 +0800 Subject: [PATCH] format appendix, fix: url of md file --- src/appendix-02-operators.md | 10 ++++++---- src/appendix-03-derivable-traits.md | 4 ++-- src/appendix-04-macros.md | 2 +- src/appendix-05-translation.md | 2 +- src/appendix-06-newest-features.md | 2 +- src/appendix-07-nightly-rust.md | 2 +- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/appendix-02-operators.md b/src/appendix-02-operators.md index 713b731..685d5f6 100644 --- a/src/appendix-02-operators.md +++ b/src/appendix-02-operators.md @@ -1,11 +1,13 @@ -# B - 运算符与符号 -> [appendix-02-operators.md](https://github.com/rust-lang/book/blob/master/2018-edition/src/appendix-02-operators.md) +## B - 运算符与符号 +> [appendix-02-operators.md](https://github.com/rust-lang/book/blob/master/second-edition/src/appendix-02-operators.md) >
-> commit [c3e81dfc199b3d27d43164df3d4d5b898fc69740](https://github.com/rust-lang/book/commit/c3e81dfc199b3d27d43164df3d4d5b898fc69740) +> commit d50521fc08e51892cdf1edf5e35f3847a42f9432 + +[commit]: https://github.com/rust-lang/book/commit/d50521fc08e51892cdf1edf5e35f3847a42f9432 该附录包含了 Rust 语法的词汇表,包括运算符以及其他的符号,这些符号以其自身或者在路径、泛型、trait bounds、宏、属性、注释、元组以及大括号的上下文中出现。 -## 运算符 +### 运算符 表B-1包含了 Rust 中的运算符、运算符如何出现在上下文中的示例、简短解释以及该运算符是否可重载。如果一个运算符是可重载的,则该运算符上用于重载的相关 trait 也会列出。 diff --git a/src/appendix-03-derivable-traits.md b/src/appendix-03-derivable-traits.md index 1ca1fc1..c2db783 100644 --- a/src/appendix-03-derivable-traits.md +++ b/src/appendix-03-derivable-traits.md @@ -4,7 +4,8 @@ >
> commit 32215c1d96c9046c0b553a05fa5ec3ede2e125c3 -[appendix-03]: https://github.com/rust-lang/book/blob/master/2018-edition/src/appendix-03-derivable-traits.md +[appendix-03]: https://github.com/rust-lang/book/blob/master/second-edition/src/appendix-03-derivable-traits.md +[commit]: https://github.com/rust-lang/book/commit/32215c1d96c9046c0b553a05fa5ec3ede2e125c3 在本书的各个部分中,我们讨论了可应用于结构体和枚举的 `derive` 属性。`derive` 属性生成的代码在使用 `derive` 语法注释的类型之上实现了带有默认实现的 trait 。 @@ -13,7 +14,6 @@ * 该 trait 将会派生什么样的操作符和方法 * 由 `derive` 提供什么样的 trait 实现 * 由什么来实现类型的 trait -* What implementing the trait signifies about the type * 是否允许实现该 trait 的条件 * 需要 trait 操作的例子 diff --git a/src/appendix-04-macros.md b/src/appendix-04-macros.md index 8129451..b1780b5 100644 --- a/src/appendix-04-macros.md +++ b/src/appendix-04-macros.md @@ -1 +1 @@ -# D - 宏 +## D - 宏 diff --git a/src/appendix-05-translation.md b/src/appendix-05-translation.md index f59f546..71a0023 100644 --- a/src/appendix-05-translation.md +++ b/src/appendix-05-translation.md @@ -1 +1 @@ -# E - 本书翻译 +## E - 本书翻译 diff --git a/src/appendix-06-newest-features.md b/src/appendix-06-newest-features.md index 25f6b45..0568b72 100644 --- a/src/appendix-06-newest-features.md +++ b/src/appendix-06-newest-features.md @@ -1 +1 @@ -# F - 最新功能 +## F - 最新功能 diff --git a/src/appendix-07-nightly-rust.md b/src/appendix-07-nightly-rust.md index abd9978..39b5963 100644 --- a/src/appendix-07-nightly-rust.md +++ b/src/appendix-07-nightly-rust.md @@ -1 +1 @@ -# G - Rust 是如何开发的与 “Nightly Rust” +## G - Rust 是如何开发的与 “Nightly Rust”