Alexander Qi
3fe5899a3a
Wrap should be translated as "回绕"
2 years ago
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.
2 years ago
ljkgpxs
0eace53a4d
Update ch07-02-defining-modules-to-control-scope-and-privacy.md
2 years ago
Shinolr
da2518a470
Update ch04-03-slices.md
2 years ago
hucc
2ef2a1c327
Update ch08-02-strings.md
2 years ago
KaiserY
d65e4e4bcb
Merge pull request #652 from GaN601/patch-2
...
修复ch9-02错别字 简介 -> 简洁
2 years ago
KaiserY
41ec4032e8
Merge pull request #651 from GeniusPenguin9/main
...
Add missing content in ch07-02
2 years ago
GaN601
07b5f2848e
修复错别字 简介 -> 简洁
2 years ago
GeniusPenguin9
5fe0781ece
Add missing content in ch07-02
...
Add missing content in ch07-02 based on latest version and more example in English version.
2 years ago
GaN601
df39200038
更新堆栈简介中把栈说成堆的错误
...
"指向放入堆中数据的指针是已知的并且大小是固定的"这里的堆应该是栈, 我看英文md写的是stack
2 years ago
KaiserY
0d4f8e953f
Merge pull request #649 from Shinolr/main
...
Update ch15-01-box.md
2 years ago
Shinolr
b22203621e
Update ch15-01-box.md
2 years ago
gty4
745b6c802a
Update ch08-01-vectors.md
2 years ago
魔王卷子
d98be8b531
Update ch01-03-hello-cargo.md
2 years ago
KaiserY
658e59c6ff
update ch04-02 close #644
2 years ago
singcl
58f687bb4f
fix(docs):修复ch13-03 html元素结束标签缺失的问题
...
文章ch13-03-improving-our-io-project 59行span元素缺失结束标签导致vuepress build的时候报错:
Compiling with vite[vite:vue] Element is missing end tag.
Compiling with vite - failed in 3.10s
SyntaxError: Element is missing end tag.
2 years ago
kkoang
67bfef6fba
与原文不同,疑似翻译不准确
...
原文地址:https://github.com/rust-lang/book/blob/main/src/ch03-02-data-types.md
原文:`An array is a single chunk of memory of a known, fixed size that can be allocated on the stack.`
把 `stack` 翻译成了 `堆栈` 应该翻译成 `栈` 这样更严谨一些
2 years ago
Xuzheng77s
bd3703424c
更新附录appendix
2 years ago
Xuzheng77s
a5c26f14d3
更新7.0与7.1
2 years ago
KaiserY
e1614a76eb
update ch17-03 fix #640
2 years ago
KaiserY
506467d34a
Merge pull request #639 from GeniusPenguin9/main
...
Update ch08-02-strings.md
2 years ago
GeniusPenguin9
6610162736
Update ch08-02-strings.md
2 years ago
KaiserY
6fab79fc03
Merge pull request #638 from chenfajie/main
...
fix spelling mistakes
2 years ago
chenfajie
5fa7565d00
fix spelling mistakes
2 years ago
Xuzheng77s
0d88f0c55b
更新src/ch06-02-match.md
2 years ago
Xuzheng77s
d68da794d7
更新src/ch06-01-defining-an-enum.md
2 years ago
Xuzheng77s
b37ed35bbb
更新src/ch06-00-enums.md
2 years ago
Xuzheng77s
dd8c1bb414
更新src/ch05-03-method-syntax.md
2 years ago
Xuzheng77s
2dcf37310d
更新src/ch05-02-example-structs.md
2 years ago
Xuzheng77s
b5dc9cbb9f
更新src/ch05-01-defining-structs.md
2 years ago
Xuzheng77s
01732d8f30
更新src/ch05-00-structs.md
2 years ago
Xuzheng77s
6c5893a38a
Update src/ch04-01-what-is-ownership.md.md ch04-01-what-is-ownership.md
2 years ago
Xuzheng77s
c82ff11a8f
Update src/ch04-03-slices.md ch04-03-slices.md
2 years ago
Xuzheng77s
a8b5de3f59
Update src/ch04-02-references-and-borrowing.md ch04-02-references-and-borrowing.md
2 years ago
Xuzheng77s
60a4e3bef9
Update src/ch02-00-guessing-game-tutorial.md
2 years ago
Xuzheng77s
681a7090eb
又捉
2 years ago
Xuzheng77s
cdf7ea4d04
捉个小虫(Filename改为文件名)
2 years ago
Hongbo He
e7f39ae75a
Update ch13-01-closures.md
...
修复关于闭包破获变量的错误表述
2 years ago
Yike Du
beb1817b3c
Fix setting env problem
2 years ago
stevenlele
f75ad6909a
Update contents for ch00-10
2 years ago
Laisky.Cai
1e6e56d00b
Update ch02-00-guessing-game-tutorial.md
...
原文是 `so we need to specify 1..=100 to request a number between 1 and 100`。
既然包含上下端点,就不该是 0~101
2 years ago
stevenlele
c2a5b87590
Update introduction
2 years ago
KaiserY
2dbec4631f
update ch03-02 fix #628
2 years ago
AlwaysSweet
87084b3881
描述堆分配后的指针放入栈中过程
2 years ago
KaiserY
8357370952
Merge pull request #624 from Sefank/ch03-update
...
Update ch03 - 20220704
2 years ago
KaiserY
0cc19d0cae
Merge pull request #623 from Sefank/main
...
Update ch02 -20220703
2 years ago
Sefank
f5fc77e0a1
Update ch03-05-control-flow.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2 years ago
Sefank
7161a99345
Update ch03-03-how-functions-work.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2 years ago
Sefank
3b2bea23a9
Update ch03-02-data-types.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2 years ago
Sefank
64561d29e1
Update ch03-01-variables-and-mutability.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2 years ago
Sefank
45b566598a
Update ch02-00-guessing-game-tutorial.md
2 years ago
Sefank
2da49dfe9d
Refine the title for ch02
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2 years ago
Han
9d78b380c1
修正部分翻译
2 years ago
Sefank
c9d4f0c3d5
Update ch01-03-hello-cargo.md
2 years ago
Sefank
7fc6510768
update ch01-02-hello-world.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2 years ago
Sefank
8d2fc58e29
Update ch01-01-installation.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2 years ago
shinolr
be7fd7ec2c
update ch05-03-method-syntax.md
2 years ago
shower
2b2e4502c9
Merge pull request #61 from showerMuggle/patch-3
...
Update ch13-04-performance.md
2 years ago
shower
87e6f4fb2b
Merge pull request #60 from showerMuggle/patch-2
...
Update ch13-03-improving-our-io-project.md
2 years ago
shower
f3c5ef2320
Update ch13-04-performance.md
...
删除重复段落
2 years ago
shower
d9817fba84
Update ch13-03-improving-our-io-project.md
...
删除多余段落
2 years ago
shower
c467aaed5a
Update ch13-01-closures.md
...
Calling the closures is required for add_one_v3 and add_one_v4 to be able to compile because the types will be inferred from their usage.
2 years ago
AuroraTea
3d386890ec
fix ch10-03-lifetime-syntax.md possible ambiguity
...
这里的它虽然结合知识和语境应该能看出来是悬垂引用,但是从汉语语法上来看就像是说生命周期。
2 years ago
cracker8090
9d3c4e217b
fix ch16-03-shared-state.md edit error
2 years ago
shinolr
a34ea72622
update ch17-03-oo-design-patterns.md
2 years ago
shinolr
c1bb02cdc9
update ch16-03-shared-state.md
2 years ago
KaiserY
373e77fa8c
Merge pull request #609 from Shinolr/main
...
fix: wrong type name
2 years ago
shinolr
97b1fb9671
update ch15-06-reference-cycles.md
2 years ago
shinolr
01342b9c16
fix: wrong type name
2 years ago
KaiserY
5da333392f
Merge pull request #608 from zhenzhenChange/fix-typo-with-optimized-translation-ch09-02
...
fix typo with optimized translation ch09-02
2 years ago
Yolo
300eb3699d
fix typo with optimized translation ch09-02
2 years ago
KaiserY
500bffebdc
Update ch09-00-error-handling.md
2 years ago
Yolo
8dd6ffb773
perf(translation): optimized-translation-ch09
2 years ago
hole\jmu
167fd47530
fix ch15
3 years ago
lyon.nee
5f9c5d84df
这里应保持 vector原意, 翻译成向量会让人有误解
3 years ago
h888866j
a551d9579e
Update ch19-06-macros.md
...
Changing the remaining “单边模式” to “分支模式”
3 years ago
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.
3 years ago
117503445
01776dd7a3
fix duplicate title in guessing-game-tutorial
...
ch02-00-guessing-game-tutorial.md has two `接收用户输入` title
3 years ago
liuziyang
acb2a34fbd
删除ch18-02-refuability中多余词语
3 years ago
juicyenc
e5b44404d0
根据英文repo修饰语言,使其更贴合原意
3 years ago
juicyenc
bfd058ef20
更改race conditon的翻译
3 years ago
juicyenc
3c4a7a5ee5
更改channel的翻译
3 years ago
云与原
379ea2de6f
Update ch10-02-traits.md
3 years ago
raygift
34ee9f11d3
update to ch10-02
...
修正声明trait 为pub 的描述
3 years ago
金晖
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
3 years ago
nb5p
6cf2b8539e
fix typo
3 years ago
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!
> 翻译:这个模块树可能会令你想起电脑上文件系统的目录树;这是一个非常恰当的比喻!
“比喻”一词改为“类比”是不是更准确一些?
3 years ago
KaiserY
b9a9911c2e
update ch11-01 close #592
3 years ago
KaiserY
c4a93b80c1
update ch09-02 close #590
3 years ago
tomoat
c91ee75d96
Update ch05-01-defining-structs.md
3 years ago
XMLHexagram
aa48c293b1
fix(typo): `custom data types` => `自定义数据类型`
3 years ago
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!");
}
```
3 years ago
KaiserY
6983d4e013
fix minted
3 years ago
AtomAlpaca
f2002a0445
fix ch02-00
3 years ago
KaiserY
91c7d02376
update to appendix-07
3 years ago
KaiserY
61292d1711
update to ch19-06
3 years ago
KaiserY
d7b0fa8065
update to ch18-03
3 years ago
KaiserY
5b156454d8
update to ch17-03
3 years ago
KaiserY
6493652a3b
update to ch16-04
3 years ago
KaiserY
946f5d5fc0
update to ch15-06
3 years ago