Wang Kefeng
a73b074054
Update ch07-04-bringing-paths-into-scope-with-the-use-keyword.md
2023-01-27 16:19:04 +08:00
KaiserY
1107ff927b
fix autocorrent
2023-01-19 00:28:09 +08:00
KaiserY
70495477d9
update to ch07-04
2023-01-19 00:24:23 +08:00
KaiserY
da065d80d9
update to ch07-04
2023-01-19 00:23:33 +08:00
Jason Lee
483ea9f308
Fix texts by use autocorrect --fix
.
2023-01-17 11:38:33 +08:00
ljkgpxs
69f393a8cf
Update ch07-04-bringing-paths-into-scope-with-the-use-keyword.md
...
添加缺失代码,去除无意义语句
其中原文为:Before this change, external code would have to call the add_to_waitlist function by using the path restaurant::front_of_house::hosting::add_to_waitlist(). Now that this pub use has re-exported the hosting module from the root module, external code can now use the path restaurant::hosting::add_to_waitlist() instead.
2022-10-21 18:01:27 +08:00
stevenlele
f75ad6909a
Update contents for ch00-10
2022-07-19 23:04:40 +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
4b0a9c80b2
update to ch07-05
2022-02-07 15:06:23 +08:00
iamwhcn
cf9ce76876
更新原文链接
2021-06-03 12:26:20 +08:00
KaiserY
fc7e90621f
update ch07-04 close #488
2021-02-01 10:54:47 +08:00
Tengfei Niu
71b57c45a3
refactor translation
2019-11-27 15:34:05 +08:00
shengurun
1f8ae697b9
style: 校正第七章的翻译风格规范
2019-11-19 09:34:58 +08:00
shengurun
a8cc6fc499
del: 删除第七章的过时章节
...
1. 删除第七章的过时章节。
2. 对ch07-04中的错误进行修复。
3. 修改SUMMARY.md,以便可以使用mdbook进行最新版第七章的编译。
2019-10-28 15:24:33 +08:00
shengurun
403cfdd1e3
add: 添加新版ch07-04的翻译
...
部分内容参考了原版ch07-02中文版里的译法,并纠正拗口的地方。
2019-10-28 14:18:32 +08:00