Commit Graph

1680 Commits

Author SHA1 Message Date
Jiang
6917991764
Merge branch 'KaiserY:main' into main 2022-05-23 22:11:18 +08:00
KaiserY
71be31a654
Merge pull request #604 from LyonNee/main
这里应保持 vector原意, 翻译成向量会让人有误解
2022-05-19 11:54:56 +08:00
lyon.nee
5f9c5d84df 这里应保持 vector原意, 翻译成向量会让人有误解 2022-05-19 10:47:22 +08:00
Jiang
1769a1ba3c
Create package.json 2022-05-17 00:06:21 +08:00
KaiserY
d794137e59
Merge pull request #603 from h888866j/patch-2
Update ch19-06-macros.md
2022-05-16 21:07:23 +08:00
h888866j
a551d9579e
Update ch19-06-macros.md
Changing the remaining “单边模式” to “分支模式”
2022-05-16 18:46:54 +08:00
KaiserY
112f901812
Merge pull request #602 from h888866j/patch-1
Fixing translation errors in ch19-06-macros.md
2022-05-16 18:41:00 +08:00
h888866j
ba9539f7ed
Fixing translation errors in ch19-06-macros.md
Fixing multiple translation errors in ch19-06-macros.md and adjusting translations in this chapter to make it more appropriate and readble.
2022-05-16 18:29:13 +08:00
KaiserY
2a7d8b10e9
Merge pull request #601 from 117503445/patch-1
fix duplicate title in guessing-game-tutorial
2022-05-13 13:06:35 +08:00
117503445
01776dd7a3
fix duplicate title in guessing-game-tutorial
ch02-00-guessing-game-tutorial.md has two `接收用户输入` title
2022-05-13 12:10:03 +08:00
KaiserY
b7dcb02068
Merge pull request #600 from liuliuliuzy/main
删除ch18-02-refuability中多余词语
2022-05-01 16:05:40 +08:00
liuziyang
acb2a34fbd 删除ch18-02-refuability中多余词语 2022-05-01 15:57:59 +08:00
KaiserY
13f56b0c37
Merge pull request #599 from juicyenc/main
更改一些翻译及措辞
2022-04-23 00:17:35 +08:00
juicyenc
e5b44404d0
根据英文repo修饰语言,使其更贴合原意 2022-04-22 22:47:49 +08:00
juicyenc
bfd058ef20
更改race conditon的翻译 2022-04-22 22:44:27 +08:00
juicyenc
3c4a7a5ee5
更改channel的翻译 2022-04-22 22:44:07 +08:00
KaiserY
123a06eecb
Merge pull request #598 from yunyuyuan/patch-1
fix: typo ch10-02-traits.md
2022-04-06 13:36:40 +08:00
云与原
379ea2de6f
Update ch10-02-traits.md 2022-04-05 23:31:26 +08:00
KaiserY
97eb82194e
Merge pull request #597 from raygift/main
update to ch10-02
2022-03-26 10:53:51 +08:00
raygift
34ee9f11d3 update to ch10-02
修正声明trait 为pub 的描述
2022-03-25 13:58:10 +08:00
KaiserY
d1fb2a3b04
Merge pull request #595 from pphui8/object-safety
17-2 add object safety
2022-03-20 13:19:31 +08:00
金晖
d4351aac10 17-2 add object safety
我注意到17-2章最后有一小节没有翻译,就先翻译上了。
我不太清楚把新加的实例代码放在哪里,就直接放在文档中了。
I`m not sure where to push the new demonstrate code so I just put them in origin file
2022-03-20 12:36:16 +08:00
KaiserY
8e1b703009
Merge pull request #594 from nb5p/patch-1
fix typo
2022-03-12 20:43:54 +08:00
nb5p
6cf2b8539e
fix typo 2022-03-12 16:13:56 +08:00
KaiserY
780ef752e6
Merge pull request #593 from qwinsi/patch-1
ch07-02措辞:“比喻” --> “类比”
2022-03-04 18:52:31 +08:00
qwinsi
30e084d110
ch07-02修改措辞:“比喻” --> “类比”
[7.2 定义模块来控制作用域与私有性] 小节中最后一段中的这句话:

> 原文:The module tree might remind you of the filesystem’s directory tree on your computer; this is a very apt comparison! 
> 翻译:这个模块树可能会令你想起电脑上文件系统的目录树;这是一个非常恰当的比喻!

“比喻”一词改为“类比”是不是更准确一些?
2022-03-04 17:21:46 +08:00
KaiserY
b9a9911c2e
update ch11-01 close #592 2022-02-28 11:26:45 +08:00
KaiserY
c4a93b80c1
update ch09-02 close #590 2022-02-24 22:29:48 +08:00
KaiserY
9a10283aa7
Merge pull request #589 from nestfiy/main
Update ch05-01-defining-structs.md
2022-02-21 14:55:12 +08:00
tomoat
c91ee75d96
Update ch05-01-defining-structs.md 2022-02-21 14:52:47 +08:00
KaiserY
cebd875ce9
Merge pull request #588 from XMLHexagram/patch-1
fix(typo): `custom data types` => `自定义数据类型`
2022-02-20 15:57:55 +08:00
XMLHexagram
aa48c293b1
fix(typo): custom data types => 自定义数据类型 2022-02-20 15:03:03 +08:00
KaiserY
aad2b24386
Update README.md 2022-02-20 13:24:34 +08:00
KaiserY
dfd8f282f5 fix actions 2022-02-19 17:55:04 +08:00
KaiserY
a855fe123a fix actions 2022-02-19 17:47:59 +08:00
KaiserY
28032c6607 fix actions 2022-02-19 17:40:30 +08:00
KaiserY
d4528e071a fix actions 2022-02-19 17:20:46 +08:00
KaiserY
c385a728f6 fix actions 2022-02-19 17:15:04 +08:00
KaiserY
3d7be519d9
Update main.yml 2022-02-19 17:12:12 +08:00
KaiserY
5f0442a630 wip add pdf output 2022-02-19 17:08:39 +08:00
KaiserY
7cd5bf3a41
Merge pull request #587 from Live4dreamCH/patch-1
PR:修改7.4中pub use部分的表述
2022-02-17 22:53:43 +08:00
Live4dreamCH
bf15d06e34
PR:修改7.4中pub use部分的表述
您好!我是rust的初学者,在阅读pub use部分时没有太理解,于是去读了这部分的英文原文,并尝试着修改,使这段更简单易懂。
这是我第一次PR,如有不妥请您多多谅解!
以下是我的验证代码,可以通过编译。
```rust
// 我们所导入的mod
mod front_of_house {
    pub mod hosting {
        pub fn add_to_waitlist() {}
    }
}

// 我们的mod
mod curr {
    pub use crate::front_of_house::hosting; // 重导出
    pub fn eat_at_restaurant() {
        hosting::add_to_waitlist();
    }
}

// 导入我们代码的mod
mod others {
    use crate::curr;
    pub fn others_fn() {
        curr::hosting::add_to_waitlist(); // 使用重导出
        curr::eat_at_restaurant();
    }
}

fn main() {
    others::others_fn();
    println!("Hello, world!");
}
```
2022-02-17 20:08:30 +08:00
KaiserY
6983d4e013 fix minted 2022-02-14 23:46:54 +08:00
KaiserY
37a0a252eb
Merge pull request #586 from AtomAlpaca/main
fix ch02-00
2022-02-14 19:20:21 +08:00
AtomAlpaca
f2002a0445
fix ch02-00 2022-02-14 18:15:42 +08:00
KaiserY
91c7d02376 update to appendix-07 2022-02-10 23:01:01 +08:00
KaiserY
61292d1711 update to ch19-06 2022-02-10 16:52:17 +08:00
KaiserY
d7b0fa8065 update to ch18-03 2022-02-10 15:15:40 +08:00
KaiserY
5b156454d8 update to ch17-03 2022-02-10 14:30:38 +08:00
KaiserY
6493652a3b update to ch16-04 2022-02-10 13:28:50 +08:00