Skip to content

Commit dd361e2

Browse files
committed
Translation(zh): optimize continue (:9216)
1 parent 1c2dd10 commit dd361e2

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

po/zh.po

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8838,15 +8838,15 @@ msgstr ""
88388838

88398839
#: src/scope/move/mut.md:14
88408840
msgid "// *Move* the box, changing the ownership (and mutability)\n"
8841-
msgstr "// *移动* box,改变所有权(和可变性)\n"
8841+
msgstr "// *移动*盒子,改变所有权(和可变性)\n"
88428842

88438843
#: src/scope/move/mut.md:17
88448844
msgid "\"mutable_box contains {}\""
88458845
msgstr "\"mutable_box 包含 {}\""
88468846

88478847
#: src/scope/move/mut.md:19
88488848
msgid "// Modify the contents of the box\n"
8849-
msgstr "// 修改 box 的内容\n"
8849+
msgstr "// 修改盒子的内容\n"
88508850

88518851
#: src/scope/move/mut.md:22
88528852
msgid "\"mutable_box now contains {}\""
@@ -8874,25 +8874,25 @@ msgstr "\"此人的年龄是 {}\""
88748874

88758875
#: src/scope/move/partial_move.md:29
88768876
msgid "\"The person's name is {}\""
8877-
msgstr "\"此人的名字是 {}\""
8877+
msgstr "\"此人的姓名是 {}\""
88788878

88798879
#: src/scope/move/partial_move.md:31
88808880
msgid ""
88818881
"// Error! borrow of partially moved value: `person` partial move occurs\n"
88828882
" //println!(\"The person struct is {:?}\", person);\n"
88838883
msgstr ""
8884-
"// 错误!借用了部分移动的值:`person` 发生了部分移动\n"
8885-
" //println!(\"此人的结构体是 {:?}\", person);\n"
8884+
"// 错误!借用部分移动的值:`person` 发生部分移动\n"
8885+
" //println!(\"person 结构体是 {:?}\", person);\n"
88868886

88878887
#: src/scope/move/partial_move.md:34
88888888
msgid ""
88898889
"// `person` cannot be used but `person.age` can be used as it is not moved\n"
88908890
msgstr ""
8891-
"// `person` 不能被使用,但 `person.age` 可以使用,因为它没有被移动\n"
8891+
"// `person` 不能使用,但 `person.age` 可以使用,因为它没有被移动\n"
88928892

88938893
#: src/scope/move/partial_move.md:35
88948894
msgid "\"The person's age from person struct is {}\""
8895-
msgstr "\"从 person 结构体中获取的此人年龄是 {}\""
8895+
msgstr "\"从 person 结构体中获取的年龄是 {}\""
88968896

88978897
#: src/scope/move/partial_move.md:38
88988898
msgid ""
@@ -8922,19 +8922,19 @@ msgid ""
89228922
"_always_ point to valid objects. That is, while references to an object "
89238923
"exist, the object cannot be destroyed."
89248924
msgstr ""
8925-
"编译器通过其借用检查器静态地保证引用**始终**指向有效的对象。也就是说,当存在引用指向一个对象时,该对象就不能被销毁。"
8925+
"编译器通过其借用检查器静态地保证引用**始终**指向有效的对象。也就是说,当存在指向一个对象的引用时,该对象就不能被销毁。"
89268926

89278927
#: src/scope/borrow.md:12
89288928
msgid "// This function takes ownership of a box and destroys it\n"
8929-
msgstr "// 这个函数获取一个 box 的所有权并销毁它\n"
8929+
msgstr "// 此函数获取一个盒子的所有权并销毁它\n"
89308930

89318931
#: src/scope/borrow.md:14
89328932
msgid "\"Destroying box that contains {}\""
8933-
msgstr "\"销毁包含 {} 的 box\""
8933+
msgstr "\"正在销毁包含 {} 的盒子\""
89348934

89358935
#: src/scope/borrow.md:16
89368936
msgid "// This function borrows an i32\n"
8937-
msgstr "// 这个函数借用一个 i32\n"
8937+
msgstr "// 此函数借用一个 i32\n"
89388938

89398939
#: src/scope/borrow.md:19
89408940
msgid "\"This int is: {}\""
@@ -8948,20 +8948,20 @@ msgid ""
89488948
" // 5_i32 is the same as 5i32\n"
89498949
msgstr ""
89508950
"// 在堆上创建一个装箱的 i32,在栈上创建一个 i32\n"
8951-
" // :数字可以添加任意下划线以提高可读性\n"
8951+
" // 注意:数字可以添加任意下划线以提高可读性\n"
89528952
" // 5_i32 与 5i32 相同\n"
89538953

89548954
#: src/scope/borrow.md:29
89558955
msgid ""
89568956
"// Borrow the contents of the box. Ownership is not taken,\n"
89578957
" // so the contents can be borrowed again.\n"
89588958
msgstr ""
8959-
"// 借用 box 的数据。所有权未被获取,\n"
8959+
"// 借用盒子的数据。所有权未被获取,\n"
89608960
" // 所以数据可以再次被借用。\n"
89618961

89628962
#: src/scope/borrow.md:35
89638963
msgid "// Take a reference to the data contained inside the box\n"
8964-
msgstr "// 获取 box 内数据的引用\n"
8964+
msgstr "// 获取盒子内数据的引用\n"
89658965

89668966
#: src/scope/borrow.md:38
89678967
msgid ""
@@ -8993,7 +8993,7 @@ msgid ""
89938993
"`&T` borrows the data via an immutable reference, and the borrower can read "
89948994
"the data but not modify it:"
89958995
msgstr ""
8996-
"可变数据可以使用 `&mut T` 进行可变借用。这被称为**可变引用**,并给予借用者读/写访问权。相比之下,`&T` 通过不可变引用借用数据,借用者可以读取数据但不能修改它:"
8996+
"可变数据可以使用 `&mut T` 进行可变借用。这被称为**可变引用**,并给予借用者读写访问权。相比之下,`&T` 通过不可变引用借用数据,借用者可以读取数据但不能修改它:"
89978997

89988998
#: src/scope/borrow/mut.md:12
89998999
msgid ""
@@ -9003,26 +9003,26 @@ msgstr ""
90039003

90049004
#: src/scope/borrow/mut.md:17
90059005
msgid "// This function takes a reference to a book\n"
9006-
msgstr "// 这个函数接受一个对 Book 类型数据的引用\n"
9006+
msgstr "// 此函数接受一个对 Book 类型的引用\n"
90079007

90089008
#: src/scope/borrow/mut.md:20
90099009
msgid "\"I immutably borrowed {} - {} edition\""
9010-
msgstr "\"我不可变地借用了 {} - {} 版\""
9010+
msgstr "\"我不可变地借用了《{}》- {} 版\""
90119011

90129012
#: src/scope/borrow/mut.md:22
90139013
msgid ""
90149014
"// This function takes a reference to a mutable book and changes `year` to "
90159015
"2014\n"
90169016
msgstr ""
9017-
"// 这个函数接受一个对可变书的引用,并将 `year` 改为 2014\n"
9017+
"// 此函数接受一个对可变 Book 的引用,并将 `year` 改为 2014\n"
90189018

90199019
#: src/scope/borrow/mut.md:26
90209020
msgid "\"I mutably borrowed {} - {} edition\""
9021-
msgstr "\"我可变地借用了 {} - {} 版\""
9021+
msgstr "\"我可变地借用了《{}》- {} 版\""
90229022

90239023
#: src/scope/borrow/mut.md:30
90249024
msgid "// Create an immutable Book named `immutabook`\n"
9025-
msgstr "// 创建一个名为 `immutabook` 的不可变 Book\n"
9025+
msgstr "// 创建一个名为 `immutabook` 的不可变 Book 实例\n"
90269026

90279027
#: src/scope/borrow/mut.md:32
90289028
msgid "// string literals have type `&'static str`\n"
@@ -9034,11 +9034,11 @@ msgstr "\"Douglas Hofstadter\""
90349034

90359035
#: src/scope/borrow/mut.md:34
90369036
msgid "\"Gödel, Escher, Bach\""
9037-
msgstr "\"Gödel, Escher, Bach\""
9037+
msgstr "\"哥德尔、埃舍尔、巴赫\""
90389038

90399039
#: src/scope/borrow/mut.md:38
90409040
msgid "// Create a mutable copy of `immutabook` and call it `mutabook`\n"
9041-
msgstr "// 创建 `immutabook` 的一个可变副本,并将其命名为 `mutabook`\n"
9041+
msgstr "// 创建 `immutabook` 的可变副本,并命名为 `mutabook`\n"
90429042

90439043
#: src/scope/borrow/mut.md:41
90449044
msgid "// Immutably borrow an immutable object\n"
@@ -9054,7 +9054,7 @@ msgstr "// 可变地借用一个可变对象\n"
90549054

90559055
#: src/scope/borrow/mut.md:50
90569056
msgid "// Error! Cannot borrow an immutable object as mutable\n"
9057-
msgstr "// 错误!不能可变地借用一个不可变对象\n"
9057+
msgstr "// 错误!不能将不可变对象作为可变对象借用\n"
90589058

90599059
#: src/scope/borrow/mut.md:57
90609060
msgid "[`static`](../lifetime/static_lifetime.md)"
@@ -9068,7 +9068,7 @@ msgid ""
90689068
"borrowed again only _after_ the mutable reference has been used for the last "
90699069
"time."
90709070
msgstr ""
9071-
"数据可以被不可变地借用任意次数,但在不可变借用期间,原始数据不能被可变地借用。另一方面,同一时间只允许**一个**可变借用。只有在可变引用最后一次使用之后,原始数据才能再次被借用。"
9071+
"数据可以被不可变借用任意次数,但在不可变借用期间,原始数据不能被可变借用。另一方面,同一时间只允许**一个**可变借用。只有在可变引用最后一次使用之后,原始数据才能再次被借用。"
90729072

90739073
#: src/scope/borrow/alias.md:17
90749074
msgid "// Data can be accessed via the references and the original owner\n"
@@ -9077,7 +9077,7 @@ msgstr "// 可以通过引用和原始所有者访问数据\n"
90779077
#: src/scope/borrow/alias.md:18 src/scope/borrow/alias.md:27
90789078
#: src/scope/borrow/alias.md:49
90799079
msgid "\"Point has coordinates: ({}, {}, {})\""
9080-
msgstr "\"Point has coordinates: ({}, {}, {})\""
9080+
msgstr "\"点的坐标为:({}, {}, {})\""
90819081

90829082
#: src/scope/borrow/alias.md:21
90839083
msgid ""
@@ -9100,11 +9100,11 @@ msgid ""
91009100
" // it is possible to reborrow with a mutable reference.\n"
91019101
msgstr ""
91029102
"// 不可变引用在代码的剩余部分不再使用\n"
9103-
" // 所以可以用可变引用重新借用。\n"
9103+
" // 因此可以用可变引用重新借用。\n"
91049104

91059105
#: src/scope/borrow/alias.md:34
91069106
msgid "// Change data via mutable reference\n"
9107-
msgstr "// 通过可变引用改变数据\n"
9107+
msgstr "// 通过可变引用修改数据\n"
91089108

91099109
#: src/scope/borrow/alias.md:39
91109110
msgid ""
@@ -9123,13 +9123,13 @@ msgid ""
91239123
" // println!(\"Point Z coordinate is {}\", point.z);\n"
91249124
" // TODO ^ Try uncommenting this line\n"
91259125
msgstr ""
9126-
"// 错误!不能打印,因为 `println!` 用到了一个不可变引用。\n"
9127-
" // println!(\"Point Z coordinate is {}\", point.z);\n"
9126+
"// 错误!无法打印,因为 `println!` 需要一个不可变引用。\n"
9127+
" // println!(\"点的 Z 坐标是 {}\", point.z);\n"
91289128
" // TODO ^ 尝试取消注释此行\n"
91299129

91309130
#: src/scope/borrow/alias.md:48
91319131
msgid "// Ok! Mutable references can be passed as immutable to `println!`\n"
9132-
msgstr "// 可以!可变引用可以作为不可变引用传递给 `println!`\n"
9132+
msgstr "// 正确!可变引用可以作为不可变引用传递给 `println!`\n"
91339133

91349134
#: src/scope/borrow/alias.md:52
91359135
msgid ""
@@ -9140,15 +9140,15 @@ msgstr ""
91409140

91419141
#: src/scope/borrow/alias.md:55
91429142
msgid "\"Point now has coordinates: ({}, {}, {})\""
9143-
msgstr "\"Point now has coordinates: ({}, {}, {})\""
9143+
msgstr "\"点现在的坐标为:({}, {}, {})\""
91449144

91459145
#: src/scope/borrow/ref.md:3
91469146
msgid ""
91479147
"When doing pattern matching or destructuring via the `let` binding, the `ref` "
91489148
"keyword can be used to take references to the fields of a struct/tuple. The "
91499149
"example below shows a few instances where this can be useful:"
91509150
msgstr ""
9151-
"在通过 `let` 绑定进行模式匹配或解构时,可以使用 `ref` 关键字来获取结构体/元组字段的引用。下面的例子展示了几个这种用法有用的情况:"
9151+
"在使用 `let` 绑定进行模式匹配或解构时,可以使用 `ref` 关键字来获取结构体或元组字段的引用。以下示例展示了几个这种用法有用的场景:"
91529152

91539153
#: src/scope/borrow/ref.md:14
91549154
msgid ""
@@ -9159,7 +9159,7 @@ msgstr ""
91599159

91609160
#: src/scope/borrow/ref.md:19
91619161
msgid "\"ref_c1 equals ref_c2: {}\""
9162-
msgstr "\"ref_c1 equals ref_c2: {}\""
9162+
msgstr "\"ref_c1 等于 ref_c2{}\""
91639163

91649164
#: src/scope/borrow/ref.md:23
91659165
msgid "// `ref` is also valid when destructuring a struct.\n"
@@ -9171,39 +9171,39 @@ msgstr "// `ref_to_x` 是 `point` 的 `x` 字段的引用。\n"
91719171

91729172
#: src/scope/borrow/ref.md:28
91739173
msgid "// Return a copy of the `x` field of `point`.\n"
9174-
msgstr "// 返回 `point` 的 `x` 字段的拷贝。\n"
9174+
msgstr "// 返回 `point` 的 `x` 字段的副本。\n"
91759175

91769176
#: src/scope/borrow/ref.md:32
91779177
msgid "// A mutable copy of `point`\n"
9178-
msgstr "// `point` 的可变拷贝\n"
9178+
msgstr "// `point` 的可变副本\n"
91799179

91809180
#: src/scope/borrow/ref.md:36
91819181
msgid "// `ref` can be paired with `mut` to take mutable references.\n"
9182-
msgstr "// `ref` 可以与 `mut` 配对来获取可变引用。\n"
9182+
msgstr "// `ref` 可以与 `mut` 配合使用来获取可变引用。\n"
91839183

91849184
#: src/scope/borrow/ref.md:39
91859185
msgid "// Mutate the `y` field of `mutable_point` via a mutable reference.\n"
91869186
msgstr "// 通过可变引用修改 `mutable_point` 的 `y` 字段。\n"
91879187

91889188
#: src/scope/borrow/ref.md:43
91899189
msgid "\"point is ({}, {})\""
9190-
msgstr "\"point is ({}, {})\""
9190+
msgstr "\"point 的坐标是 ({}, {})\""
91919191

91929192
#: src/scope/borrow/ref.md:44
91939193
msgid "\"mutable_point is ({}, {})\""
9194-
msgstr "\"mutable_point is ({}, {})\""
9194+
msgstr "\"mutable_point 的坐标是 ({}, {})\""
91959195

91969196
#: src/scope/borrow/ref.md:46
91979197
msgid "// A mutable tuple that includes a pointer\n"
91989198
msgstr "// 包含指针的可变元组\n"
91999199

92009200
#: src/scope/borrow/ref.md:50
92019201
msgid "// Destructure `mutable_tuple` to change the value of `last`.\n"
9202-
msgstr "// 解构 `mutable_tuple` 以改变 `last` 的值。\n"
9202+
msgstr "// 解构 `mutable_tuple` 以修改 `last` 的值。\n"
92039203

92049204
#: src/scope/borrow/ref.md:55
92059205
msgid "\"tuple is {:?}\""
9206-
msgstr "\"tuple is {:?}\""
9206+
msgstr "\"元组是 {:?}\""
92079207

92089208
#: src/scope/lifetime.md:3
92099209
msgid ""
@@ -9212,7 +9212,7 @@ msgid ""
92129212
"lifetime begins when it is created and ends when it is destroyed. While "
92139213
"lifetimes and scopes are often referred to together, they are not the same."
92149214
msgstr ""
9215-
"**生命周期**是编译器(更具体地说是其**借用检查器**)用来确保所有借用都是有效的一个构造。具体来说,变量的生命周期从创建时开始,到销毁时结束。虽然生命周期和作用域经常被一起提到,但它们并不相同。"
9215+
"**生命周期**是编译器(更具体地说是其**借用检查器**)用来确保所有借用都有效的一种机制。具体来说,变量的生命周期从创建时开始,到销毁时结束。虽然生命周期和作用域经常被一起提到,但它们并不相同。"
92169216

92179217
#: src/scope/lifetime.md:8
92189218
msgid ""

0 commit comments

Comments
 (0)