Skip to content

Commit c18b7d9

Browse files
committed
Translation(zh): optimize continue (:3436)
1 parent 12fdafb commit c18b7d9

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

po/zh.po

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3335,23 +3335,23 @@ msgid ""
33353335
"But, explicit type conversion (casting) can be performed using the `as` "
33363336
"keyword."
33373337
msgstr ""
3338-
"Rust 不提供原生类型之间的隐式类型转换(coercion, 强制转换)。但是,可以使用 `as` 关键字执行显式类型转换(casting)。"
3338+
"Rust 不支持原始类型之间的隐式类型转换(强制转换)。但可以使用 `as` 关键字进行显式类型转换(转型)。"
33393339

33403340
#: src/types/cast.md:6
33413341
msgid ""
33423342
"Rules for converting between integral types follow C conventions generally, "
33433343
"except in cases where C has undefined behavior. The behavior of all casts "
33443344
"between integral types is well defined in Rust."
33453345
msgstr ""
3346-
"整型类型之间的转换规则通常遵循 C 语言的惯例,除了 C 语言中存在未定义行为的情况。在 Rust 中,所有整型类型之间的转换行为都是明确定义的。"
3346+
"整数类型之间的转换规则通常遵循 C 语言惯例,但 C 中存在未定义行为的情况除外。在 Rust 中,所有整数类型之间的转换行为都有明确定义。"
33473347

33483348
#: src/types/cast.md:11
33493349
msgid "// Suppress all warnings from casts which overflow.\n"
3350-
msgstr "// 抑制所有来自溢出转换的警告。\n"
3350+
msgstr "// 抑制所有由溢出转换引起的警告。\n"
33513351

33523352
#: src/types/cast.md:17
33533353
msgid "// Error! No implicit conversion\n"
3354-
msgstr "// 报错!没有隐式转换\n"
3354+
msgstr "// 错误!不允许隐式转换\n"
33553355

33563356
#: src/types/cast.md:21
33573357
msgid "// Explicit conversion\n"
@@ -3362,12 +3362,12 @@ msgid ""
33623362
"// Error! There are limitations in conversion rules.\n"
33633363
" // A float cannot be directly converted to a char.\n"
33643364
msgstr ""
3365-
"// 报错!转换规则有限制。\n"
3365+
"// 错误!转换规则有限制。\n"
33663366
" // 浮点数不能直接转换为字符。\n"
33673367

33683368
#: src/types/cast.md:30
33693369
msgid "\"Casting: {} -> {} -> {}\""
3370-
msgstr "\"转换:{} -> {} -> {}\""
3370+
msgstr "\"类型转换:{} -> {} -> {}\""
33713371

33723372
#: src/types/cast.md:32
33733373
msgid ""
@@ -3376,7 +3376,7 @@ msgid ""
33763376
" // fits into the new type\n"
33773377
msgstr ""
33783378
"// 当将任何值转换为无符号类型 T 时,\n"
3379-
" // 会不断加上或减去 T::MAX + 1,直到该值\n"
3379+
" // 会反复加上或减去 T::MAX + 1,直到该值\n"
33803380
" // 适合新类型\n"
33813381

33823382
#: src/types/cast.md:36
@@ -3385,7 +3385,7 @@ msgstr "// 1000 已经适合 u16\n"
33853385

33863386
#: src/types/cast.md:37
33873387
msgid "\"1000 as a u16 is: {}\""
3388-
msgstr "\"1000 作为 u16 是:{}\""
3388+
msgstr "\"1000 转换为 u16 是:{}\""
33893389

33903390
#: src/types/cast.md:39
33913391
msgid ""
@@ -3394,28 +3394,28 @@ msgid ""
33943394
" // while the rest towards the most significant bit (MSB) get truncated.\n"
33953395
msgstr ""
33963396
"// 1000 - 256 - 256 - 256 = 232\n"
3397-
" // 在底层,保留了最低有效位(LSB)的前 8 位,\n"
3397+
" // 实际上,保留了最低有效位(LSB)的前 8 位,\n"
33983398
" // 而朝最高有效位(MSB)方向的其余位被截断。\n"
33993399

34003400
#: src/types/cast.md:42 src/types/cast.md:61
34013401
msgid "\"1000 as a u8 is : {}\""
3402-
msgstr "\"1000 作为 u8 是:{}\""
3402+
msgstr "\"1000 转换为 u8 是:{}\""
34033403

34043404
#: src/types/cast.md:43
34053405
msgid "// -1 + 256 = 255\n"
34063406
msgstr "// -1 + 256 = 255\n"
34073407

34083408
#: src/types/cast.md:44
34093409
msgid "\" -1 as a u8 is : {}\""
3410-
msgstr "\" -1 作为 u8 是:{}\""
3410+
msgstr "\" -1 转换为 u8 是:{}\""
34113411

34123412
#: src/types/cast.md:46
34133413
msgid "// For positive numbers, this is the same as the modulus\n"
3414-
msgstr "// 对于正数,这与取模操作相同\n"
3414+
msgstr "// 对于正数,这等同于取模运算\n"
34153415

34163416
#: src/types/cast.md:47
34173417
msgid "\"1000 mod 256 is : {}\""
3418-
msgstr "\"1000 mod 256 :{}\""
3418+
msgstr "\"1000 256 取模是:{}\""
34193419

34203420
#: src/types/cast.md:49
34213421
msgid ""
@@ -3424,9 +3424,9 @@ msgid ""
34243424
"significant\n"
34253425
" // bit of that value is 1, then the value is negative.\n"
34263426
msgstr ""
3427-
"// 当转换为有符号类型时,(按位)结果与\n"
3428-
" // 首先转换为相应的无符号类型相同。如果该值的最高有效位\n"
3429-
" // 1,那么该值为负数。\n"
3427+
"// 当转换为有符号类型时,(按位)结果等同于\n"
3428+
" // 先转换为对应的无符号类型。如果该值的最高有效位\n"
3429+
" // 1,则该值为负数。\n"
34303430

34313431
#: src/types/cast.md:53
34323432
msgid "// Unless it already fits, of course.\n"

0 commit comments

Comments
 (0)