mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-20 21:18:26 +02:00
zh-TW: translation for src/control-flow/blocks.md (#782)
* zh-TW: translation for src/control-flow/blocks.md * zh-TW: update translation for src/control-flow/blocks.md
This commit is contained in:
parent
2eda22dced
commit
ebf1bbb5fe
12
po/zh-TW.po
12
po/zh-TW.po
@ -5873,7 +5873,7 @@ msgstr ""
|
||||
|
||||
#: src/control-flow/blocks.md:1
|
||||
msgid "# Blocks"
|
||||
msgstr ""
|
||||
msgstr "# 區塊"
|
||||
|
||||
#: src/control-flow/blocks.md:3
|
||||
msgid ""
|
||||
@ -5881,6 +5881,8 @@ msgid ""
|
||||
"the\n"
|
||||
"block:"
|
||||
msgstr ""
|
||||
"Rust 中的區塊 (Block) 包含一個數值以及一個型別:數值即為該區塊中的最後一行表"
|
||||
"達式:"
|
||||
|
||||
#: src/control-flow/blocks.md:6
|
||||
msgid ""
|
||||
@ -5908,7 +5910,7 @@ msgstr ""
|
||||
msgid ""
|
||||
"The same rule is used for functions: the value of the function body is the\n"
|
||||
"return value:"
|
||||
msgstr ""
|
||||
msgstr "同樣的規則也適用於函式:函式的數值即為函式本體的回傳值:"
|
||||
|
||||
#: src/control-flow/blocks.md:28
|
||||
msgid ""
|
||||
@ -5927,7 +5929,7 @@ msgstr ""
|
||||
msgid ""
|
||||
"However if the last expression ends with `;`, then the resulting value and "
|
||||
"type is `()`."
|
||||
msgstr ""
|
||||
msgstr "然而,如果最後一行表達式的結尾為 `;`,則最後的數值及型別皆為 `()`。"
|
||||
|
||||
#: src/control-flow/blocks.md:43
|
||||
msgid ""
|
||||
@ -5938,6 +5940,10 @@ msgid ""
|
||||
"`return`.\n"
|
||||
" "
|
||||
msgstr ""
|
||||
"* 這張投影片所表達的重點在於 Rust 中的區塊具有一個數值以及一個型別。\n"
|
||||
"* 你可以藉由改變區塊中的最後一行來觀察區塊數值的變化。舉例來說,新增或刪除一"
|
||||
"個分號,或者使用 `return`。\n"
|
||||
" "
|
||||
|
||||
#: src/control-flow/if-expressions.md:1
|
||||
msgid "# `if` expressions"
|
||||
|
Loading…
x
Reference in New Issue
Block a user