Sakura
0078a45ca3
fix translate
...
One translation correction is not updated.
2023-03-07 23:14:40 +08:00
Eridanus
30e8760958
Update foreword.md
...
fix translate
2023-03-02 00:25:58 +08:00
al00000
f791442796
Update ch12-03-improving-error-handling-and-modularity.md
...
1. 官网文档修改了 Config::new 函数名为 Config::build
2023-02-17 09:05:35 +08:00
peng.xie
7fcf7a53bb
ch15-00-smart-pointers.md>line 9>许-允许
2023-02-14 16:09:59 +08:00
KaiserY
9d667423c3
Merge pull request #700 from douglarek/patch-1
...
[ch20-02-multithreaded.md] typo fix
2023-02-12 12:56:09 +08:00
douglarek
dd4ceba24f
[ch20-02-multithreaded.md] typo fix
2023-02-11 23:46:35 +08:00
quyc07
b5f61111e6
Update ch11-03-test-organization.md
2023-02-07 17:49:40 +08:00
quyc07
52058a52b2
Update ch10-02-traits.md
2023-02-05 08:54:23 +08:00
quyc07
73a9d22416
Update ch10-01-syntax.md
2023-02-03 17:14:00 +08:00
quyc07
7d21f53b2d
Update ch09-01-unrecoverable-errors-with-panic.md
2023-02-03 14:09:59 +08:00
quyc07
2c28412d57
修改错别字
2023-02-01 19:54:25 +08:00
KaiserY
3ffad91990
update appendix & readme
2023-01-31 10:04:30 +08:00
KaiserY
49a842503d
update ch13 close #673
2023-01-31 09:58:25 +08:00
KaiserY
295b55f57c
update ch13-02 close #695
2023-01-30 18:25:58 +08:00
KaiserY
d982f6d871
Merge branch 'main' of https://github.com/KaiserY/trpl-zh-cn into main
2023-01-30 17:40:03 +08:00
KaiserY
b9b907d78a
update ch20
2023-01-30 17:39:46 +08:00
KaiserY
cab5499d60
Merge pull request #694 from logicskky/patch
...
Update Chapter 8
2023-01-30 16:02:44 +08:00
Wang Kefeng
3e1aa048e4
update ch08
2023-01-30 15:56:27 +08:00
KaiserY
89cdab40e6
update ch19
2023-01-30 14:05:51 +08:00
KaiserY
7ef91fa9ae
update ch18
2023-01-30 10:21:22 +08:00
TeCHiScy
74ef8e4773
Update ch13-01-closures.md
...
修正 typo
2023-01-29 12:07:51 +08:00
KaiserY
bc79854a2f
Merge pull request #692 from logicskky/patch-2
...
Update ch07-05-separating-modules-into-different-files.md
2023-01-28 12:44:27 +08:00
Wang Kefeng
cadf494e7b
Update ch07-05-separating-modules-into-different-files.md
2023-01-27 22:33:44 +08:00
Wang Kefeng
2f8f2d1a1f
Update ch07-05-separating-modules-into-different-files.md
2023-01-27 17:29:53 +08:00
Wang Kefeng
a73b074054
Update ch07-04-bringing-paths-into-scope-with-the-use-keyword.md
2023-01-27 16:19:04 +08:00
_lmmmmmm
ac20086bc2
fix: ch12-05 typo
2023-01-26 00:25:26 +08:00
KaiserY
f0df200cb0
update ch17
2023-01-24 21:32:21 +08:00
KaiserY
6a952961bd
update ch16
2023-01-24 20:28:25 +08:00
KaiserY
4c46c1da30
Merge pull request #687 from TeCHiScy/patch-5
...
Update ch15-00-smart-pointers.md
2023-01-24 13:08:48 +08:00
TeCHiScy
847cb1f168
Update ch15-00-smart-pointers.md
...
fix 英文标点
2023-01-24 00:04:43 +08:00
TeCHiScy
c62d168620
Update ch13-01-closures.md
2023-01-23 23:58:42 +08:00
KaiserY
7dc059f009
update ch15
2023-01-23 21:27:25 +08:00
KaiserY
b05c60534c
update ch14
2023-01-23 15:04:06 +08:00
KaiserY
e0b47e2779
fix ci
2023-01-23 14:39:42 +08:00
KaiserY
bf95d16adf
Merge pull request #685 from TeCHiScy/patch-4
...
Update ch13-01-closures.md
2023-01-22 22:18:24 +08:00
KaiserY
f291adb581
update ch14-02
2023-01-22 22:11:43 +08:00
TeCHiScy
10888935f4
Update ch13-01-closures.md
...
更新原文 commit hash,Rust 代码使用 rust,noplayground 包裹
2023-01-22 21:48:30 +08:00
TeCHiScy
b0550f9743
Update ch13-01-closures.md
2023-01-22 18:12:40 +08:00
TeCHiScy
0d9f388dc7
Update ch13-01-closures.md
2023-01-22 18:10:54 +08:00
TeCHiScy
44c3b8df31
Update ch13-01-closures.md
2023-01-22 18:09:58 +08:00
TeCHiScy
a2651505ce
Update ch13-01-closures.md
2023-01-22 18:06:17 +08:00
TeCHiScy
8b17ce28ac
Update ch13-01-closures.md
2023-01-22 18:04:07 +08:00
TeCHiScy
fa62c9d6b0
Update ch13-01-closures.md
2023-01-22 18:01:17 +08:00
TeCHiScy
3ada8d427e
Update ch13-01-closures.md
2023-01-22 17:54:29 +08:00
TeCHiScy
96450f41a9
Update ch13-01-closures.md
2023-01-22 17:51:48 +08:00
TeCHiScy
b753342208
Update ch13-01-closures.md
2023-01-22 17:49:25 +08:00
TeCHiScy
4e4208bf39
Update ch13-01-closures.md
2023-01-22 17:42:08 +08:00
TeCHiScy
6348c24894
Update ch13-01-closures.md
2023-01-22 17:41:11 +08:00
TeCHiScy
46847679ee
Update ch13-01-closures.md
2023-01-22 17:37:27 +08:00
TeCHiScy
4c3b0bdcc9
Update ch13-01-closures.md
2023-01-22 17:36:16 +08:00
TeCHiScy
b95f3b404a
Update ch13-01-closures.md
2023-01-22 17:35:31 +08:00
TeCHiScy
45b60d40d0
Update ch13-01-closures.md
2023-01-22 17:20:48 +08:00
TeCHiScy
c23c793085
Update ch13-01-closures.md
2023-01-22 17:19:23 +08:00
TeCHiScy
28e1ca0bb4
Update ch13-01-closures.md
2023-01-22 16:51:50 +08:00
TeCHiScy
9563f59566
Update ch13-01-closures.md
2023-01-22 16:49:20 +08:00
TeCHiScy
992473f5de
Update ch13-01-closures.md
2023-01-22 16:44:45 +08:00
TeCHiScy
e0bf7dbac5
Update ch13-01-closures.md wip
2023-01-22 16:33:31 +08:00
KaiserY
18750b3f76
update ch13-01 wip
2023-01-22 00:41:58 +08:00
KaiserY
6d567ee104
update ch12
2023-01-21 10:44:32 +08:00
KaiserY
a14433ba5f
update ch11
2023-01-21 09:58:04 +08:00
_lmmmmmm
9ee753a5c8
fix: ch09-03 typo
2023-01-20 21:26:30 +08:00
_lmmmmmm
0eb12b7e4b
fix: ch07-05 file content
2023-01-20 21:25:30 +08:00
KaiserY
6031abb39f
update ch11-00 & ch11-01 wip
2023-01-19 23:32:22 +08:00
KaiserY
3a3d8b3d42
update ch09-03
2023-01-19 22:30:15 +08:00
KaiserY
d77474e925
update ch09-02
2023-01-19 16:48:42 +08:00
KaiserY
5aa17f29e7
update ch07-05
2023-01-19 15:25:01 +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
KaiserY
d33ef24ed4
update ch06
2023-01-18 22:25:16 +08:00
KaiserY
fe175e6e15
update ch04-01 close #682
2023-01-18 22:10:25 +08:00
KaiserY
e14942a769
Merge pull request #681 from biaji/patch-2
...
Update ch12-03-improving-error-handling-and-modularity.md
2023-01-18 14:26:26 +08:00
biaji
3f33d89ac1
Update ch12-03-improving-error-handling-and-modularity.md
...
修复变量名称错误
2023-01-18 14:02:41 +08:00
luke
9939a5d9f2
update ch12 ENV VAR
2023-01-18 13:07:25 +08:00
KaiserY
7c7049ed34
update ch08 close #679
2023-01-18 00:13:36 +08:00
KaiserY
b58a6ce83a
update ch10-03 close #677
2023-01-17 23:14:26 +08:00
KaiserY
adb527a675
update ch10-01 & ch10-02
2023-01-17 16:28:27 +08:00
KaiserY
207fd3e207
update ch10-00
2023-01-17 12:58:06 +08:00
Jason Lee
483ea9f308
Fix texts by use autocorrect --fix
.
2023-01-17 11:38:33 +08:00
KaiserY
23673cb6e7
update to ch05-03
2023-01-16 23:29:51 +08:00
KaiserY
fbdc47c405
update to ch02-00 & update listings
2023-01-16 17:34:52 +08:00
Narukara
222dc08165
Update appendix-03-derivable-traits.md
...
修正不通顺的、有误的翻译
2023-01-13 03:26:17 +08:00
Narukara
df6edca2da
Update ch20-02-multithreaded.md
...
一些 typo
2023-01-12 23:35:26 +08:00
Narukara
2d2bd7b045
Update ch19-04-advanced-types.md
...
修正错误和不通顺的翻译
2023-01-12 03:32:52 +08:00
Narukara
7006f05ea9
Update ch11-01-writing-tests.md
...
修正语病、不通顺的翻译和缺漏的翻译
2022-12-29 19:12:15 +08:00
Narukara
d40c8fa388
Update ch07-02-defining-modules-to-control-scope-and-privacy.md
...
"Filename"改为"文件名"
2022-12-17 01:41:58 +08:00
Narukara
457194bc62
Update ch07-02-defining-modules-to-control-scope-and-privacy.md
...
修正奇怪的翻译
2022-12-16 18:28:50 +08:00
biaji
62a57a8a67
Update ch07-02-defining-modules-to-control-scope-and-privacy.md
...
修改部分翻译。原始翻译似乎有缺漏
2022-12-12 22:11:42 +08:00
KaiserY
795eaeda49
update ch04-01 close #669
2022-11-22 15:19:20 +08:00
Jinguang Dong
483a9eecd3
Description:[fix] fixed typo from add-one to add_one
...
Bug: #667
Test: Following the example could run it normally for workspace section
Signed-off-by: Jinguang Dong <dongjinguang@huawei.com>
2022-11-18 16:34:26 +08:00
Nitromelon
0cab4049a9
Update ch11-03-test-organization.md
2022-11-14 19:34:38 +08:00
sxyazi
ca0ef235c0
fix: commas
2022-11-04 15:50:13 +08:00
sxyazi
f679800f07
fix: function name to call
2022-11-04 15:49:53 +08:00
sxyazi
e374f06ab2
fix: rm the extra spaces
2022-11-03 11:12:57 +08:00
sxyazi
6b9b518c01
fix: make the symbols consistent
2022-11-03 11:12:15 +08:00
sxyazi
e4f70a3c63
fix: wrong context of the link to referencing
2022-11-02 12:22:54 +08:00
sxyazi
f364f7f314
fix: use the periods of Chinese, rather than English
2022-11-02 09:11:24 +08:00
sxyazi
29bffa2434
fix: typo
2022-11-02 09:06:59 +08:00
KaiserY
4fac4ea6a2
Merge pull request #661 from iphucc/patch-4
...
Update ch18-03-pattern-syntax.md
2022-10-27 23:15:40 +08:00
hucc
e9bad12bdd
Update ch18-03-pattern-syntax.md
2022-10-27 20:50:58 +08:00
hucc
d594ed645c
Update ch18-03-pattern-syntax.md
...
“讨论了”改成“讨论”;“每个语法”改成“这些语法”与前一句对应方便理解
2022-10-27 19:59:01 +08:00
hucc
d0d02e4169
Update ch17-02-trait-objects.md
...
这段有点难翻译,帮忙看看有没有更好一点
2022-10-26 18:59:20 +08:00
Alexander Qi
b8d66c8b6b
accent 指西欧语言的变音符号
...
https://zh.wikipedia.org/wiki/%E9%99%84%E5%8A%A0%E7%AC%A6%E5%8F%B7
2022-10-23 23:55:25 +08:00
Alexander Qi
3fe5899a3a
Wrap should be translated as "回绕"
2022-10-23 23:49:07 +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
ljkgpxs
0eace53a4d
Update ch07-02-defining-modules-to-control-scope-and-privacy.md
2022-10-21 16:22:43 +08:00
Shinolr
da2518a470
Update ch04-03-slices.md
2022-10-07 20:27:02 +08:00
hucc
2ef2a1c327
Update ch08-02-strings.md
2022-10-04 18:51:34 +08:00
KaiserY
d65e4e4bcb
Merge pull request #652 from GaN601/patch-2
...
修复ch9-02错别字 简介 -> 简洁
2022-10-04 12:57:51 +08:00
KaiserY
41ec4032e8
Merge pull request #651 from GeniusPenguin9/main
...
Add missing content in ch07-02
2022-10-04 12:57:34 +08:00
GaN601
07b5f2848e
修复错别字 简介 -> 简洁
2022-10-03 22:39:44 +08:00
GeniusPenguin9
5fe0781ece
Add missing content in ch07-02
...
Add missing content in ch07-02 based on latest version and more example in English version.
2022-10-03 17:01:47 +08:00
GaN601
df39200038
更新堆栈简介中把栈说成堆的错误
...
"指向放入堆中数据的指针是已知的并且大小是固定的"这里的堆应该是栈, 我看英文md写的是stack
2022-10-02 11:26:01 +08:00
KaiserY
0d4f8e953f
Merge pull request #649 from Shinolr/main
...
Update ch15-01-box.md
2022-09-29 11:52:46 +08:00
Shinolr
b22203621e
Update ch15-01-box.md
2022-09-28 16:28:18 +08:00
gty4
745b6c802a
Update ch08-01-vectors.md
2022-09-27 23:49:14 +08:00
魔王卷子
d98be8b531
Update ch01-03-hello-cargo.md
2022-09-24 21:57:50 +08:00
KaiserY
658e59c6ff
update ch04-02 close #644
2022-09-21 10:36:39 +08:00
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.
2022-09-21 00:08:57 +08:00
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` 翻译成了 `堆栈` 应该翻译成 `栈` 这样更严谨一些
2022-09-13 17:36:32 +08:00
Xuzheng77s
bd3703424c
更新附录appendix
2022-08-28 22:21:17 +08:00
Xuzheng77s
a5c26f14d3
更新7.0与7.1
2022-08-28 16:26:35 +08:00
KaiserY
e1614a76eb
update ch17-03 fix #640
2022-08-27 19:27:24 +08:00
KaiserY
506467d34a
Merge pull request #639 from GeniusPenguin9/main
...
Update ch08-02-strings.md
2022-08-26 00:43:28 +08:00
GeniusPenguin9
6610162736
Update ch08-02-strings.md
2022-08-24 23:04:16 +08:00
KaiserY
6fab79fc03
Merge pull request #638 from chenfajie/main
...
fix spelling mistakes
2022-08-24 17:46:17 +08:00
chenfajie
5fa7565d00
fix spelling mistakes
2022-08-24 15:21:37 +08:00
Xuzheng77s
0d88f0c55b
更新src/ch06-02-match.md
2022-08-19 20:06:25 +08:00
Xuzheng77s
d68da794d7
更新src/ch06-01-defining-an-enum.md
2022-08-19 19:32:40 +08:00
Xuzheng77s
b37ed35bbb
更新src/ch06-00-enums.md
2022-08-19 19:18:42 +08:00
Xuzheng77s
dd8c1bb414
更新src/ch05-03-method-syntax.md
2022-08-19 18:59:09 +08:00
Xuzheng77s
2dcf37310d
更新src/ch05-02-example-structs.md
2022-08-19 18:50:44 +08:00
Xuzheng77s
b5dc9cbb9f
更新src/ch05-01-defining-structs.md
2022-08-19 18:41:50 +08:00
Xuzheng77s
01732d8f30
更新src/ch05-00-structs.md
2022-08-19 18:31:49 +08:00
Xuzheng77s
6c5893a38a
Update src/ch04-01-what-is-ownership.md.md ch04-01-what-is-ownership.md
2022-08-18 18:47:32 +08:00
Xuzheng77s
c82ff11a8f
Update src/ch04-03-slices.md ch04-03-slices.md
2022-08-18 18:45:28 +08:00
Xuzheng77s
a8b5de3f59
Update src/ch04-02-references-and-borrowing.md ch04-02-references-and-borrowing.md
2022-08-18 18:42:17 +08:00
Xuzheng77s
60a4e3bef9
Update src/ch02-00-guessing-game-tutorial.md
2022-08-18 18:42:15 +08:00
Xuzheng77s
681a7090eb
又捉
2022-08-17 17:09:41 +08:00
Xuzheng77s
cdf7ea4d04
捉个小虫(Filename改为文件名)
2022-08-17 16:45:45 +08:00
Hongbo He
e7f39ae75a
Update ch13-01-closures.md
...
修复关于闭包破获变量的错误表述
2022-08-15 17:16:37 +08:00
Yike Du
beb1817b3c
Fix setting env problem
2022-08-07 18:05:06 +08:00
stevenlele
f75ad6909a
Update contents for ch00-10
2022-07-19 23:04:40 +08:00
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
2022-07-19 11:27:37 +08:00
stevenlele
c2a5b87590
Update introduction
2022-07-19 06:57:15 +08:00
KaiserY
2dbec4631f
update ch03-02 fix #628
2022-07-15 12:45:24 +08:00
AlwaysSweet
87084b3881
描述堆分配后的指针放入栈中过程
2022-07-06 14:16:00 +08:00
KaiserY
8357370952
Merge pull request #624 from Sefank/ch03-update
...
Update ch03 - 20220704
2022-07-05 22:01:30 +08:00
KaiserY
0cc19d0cae
Merge pull request #623 from Sefank/main
...
Update ch02 -20220703
2022-07-05 08:23:40 +08:00
Sefank
f5fc77e0a1
Update ch03-05-control-flow.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2022-07-04 22:17:53 +08:00
Sefank
7161a99345
Update ch03-03-how-functions-work.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2022-07-04 22:10:23 +08:00
Sefank
3b2bea23a9
Update ch03-02-data-types.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2022-07-04 11:27:33 +08:00
Sefank
64561d29e1
Update ch03-01-variables-and-mutability.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2022-07-04 11:11:55 +08:00
Sefank
45b566598a
Update ch02-00-guessing-game-tutorial.md
2022-07-03 23:48:54 +08:00
Sefank
2da49dfe9d
Refine the title for ch02
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2022-07-03 22:48:53 +08:00
Han
9d78b380c1
修正部分翻译
2022-07-03 19:26:35 +08:00
Sefank
c9d4f0c3d5
Update ch01-03-hello-cargo.md
2022-07-03 01:25:41 +08:00
Sefank
7fc6510768
update ch01-02-hello-world.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2022-07-03 00:56:09 +08:00
Sefank
8d2fc58e29
Update ch01-01-installation.md
...
Signed-off-by: Sefank <12670778+Sefank@users.noreply.github.com>
2022-07-03 00:22:53 +08:00
shinolr
be7fd7ec2c
update ch05-03-method-syntax.md
2022-07-01 10:43:28 +08:00
shower
2b2e4502c9
Merge pull request #61 from showerMuggle/patch-3
...
Update ch13-04-performance.md
2022-06-29 17:27:53 +08:00
shower
87e6f4fb2b
Merge pull request #60 from showerMuggle/patch-2
...
Update ch13-03-improving-our-io-project.md
2022-06-29 17:27:18 +08:00
shower
f3c5ef2320
Update ch13-04-performance.md
...
删除重复段落
2022-06-29 17:21:26 +08:00
shower
d9817fba84
Update ch13-03-improving-our-io-project.md
...
删除多余段落
2022-06-29 17:19:42 +08:00
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.
2022-06-29 15:32:56 +08:00
AuroraTea
3d386890ec
fix ch10-03-lifetime-syntax.md possible ambiguity
...
这里的它虽然结合知识和语境应该能看出来是悬垂引用,但是从汉语语法上来看就像是说生命周期。
2022-06-25 16:12:10 +08:00
cracker8090
9d3c4e217b
fix ch16-03-shared-state.md edit error
2022-06-09 21:51:43 +08:00
shinolr
a34ea72622
update ch17-03-oo-design-patterns.md
2022-06-05 22:16:46 +08:00
shinolr
c1bb02cdc9
update ch16-03-shared-state.md
2022-06-04 23:08:00 +08:00
KaiserY
373e77fa8c
Merge pull request #609 from Shinolr/main
...
fix: wrong type name
2022-06-03 22:09:33 +08:00
shinolr
97b1fb9671
update ch15-06-reference-cycles.md
2022-06-03 21:42:31 +08:00
shinolr
01342b9c16
fix: wrong type name
2022-06-03 20:58:33 +08:00
KaiserY
5da333392f
Merge pull request #608 from zhenzhenChange/fix-typo-with-optimized-translation-ch09-02
...
fix typo with optimized translation ch09-02
2022-06-03 20:56:58 +08:00
Yolo
300eb3699d
fix typo with optimized translation ch09-02
2022-06-02 18:25:57 +08:00
KaiserY
500bffebdc
Update ch09-00-error-handling.md
2022-06-02 12:35:55 +08:00
Yolo
8dd6ffb773
perf(translation): optimized-translation-ch09
2022-06-02 10:46:05 +08:00
hole\jmu
167fd47530
fix ch15
2022-05-23 22:43:21 +08:00
lyon.nee
5f9c5d84df
这里应保持 vector原意, 翻译成向量会让人有误解
2022-05-19 10:47:22 +08:00
h888866j
a551d9579e
Update ch19-06-macros.md
...
Changing the remaining “单边模式” to “分支模式”
2022-05-16 18:46:54 +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
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
liuziyang
acb2a34fbd
删除ch18-02-refuability中多余词语
2022-05-01 15:57:59 +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
云与原
379ea2de6f
Update ch10-02-traits.md
2022-04-05 23:31:26 +08:00
raygift
34ee9f11d3
update to ch10-02
...
修正声明trait 为pub 的描述
2022-03-25 13:58:10 +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
nb5p
6cf2b8539e
fix typo
2022-03-12 16:13:56 +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
tomoat
c91ee75d96
Update ch05-01-defining-structs.md
2022-02-21 14:52:47 +08:00
XMLHexagram
aa48c293b1
fix(typo): custom data types
=> 自定义数据类型
2022-02-20 15:03:03 +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
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