You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-03 21:39:51 +02:00
zh-TW: translation for src/control-flow/if-expressions.md (#801)
* zh-TW: translation for src/control-flow/if-expressions.md * zh-TW: add translation for src/SUMMARY.md:98
This commit is contained in:
10
po/zh-TW.po
10
po/zh-TW.po
@ -324,7 +324,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/SUMMARY.md:98
|
#: src/SUMMARY.md:98
|
||||||
msgid "if expressions"
|
msgid "if expressions"
|
||||||
msgstr ""
|
msgstr "if 表達式"
|
||||||
|
|
||||||
#: src/SUMMARY.md:99
|
#: src/SUMMARY.md:99
|
||||||
msgid "if let expressions"
|
msgid "if let expressions"
|
||||||
@ -5947,7 +5947,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/control-flow/if-expressions.md:1
|
#: src/control-flow/if-expressions.md:1
|
||||||
msgid "# `if` expressions"
|
msgid "# `if` expressions"
|
||||||
msgstr ""
|
msgstr "# `if` 表達式"
|
||||||
|
|
||||||
#: src/control-flow/if-expressions.md:3
|
#: src/control-flow/if-expressions.md:3
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -5956,6 +5956,8 @@ msgid ""
|
|||||||
"expressions)\n"
|
"expressions)\n"
|
||||||
"exactly like `if` statements in other languages:"
|
"exactly like `if` statements in other languages:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"你可以像在其他語言中使用 `if` 陳述式那樣地使用 [`if` 表達式](https://doc."
|
||||||
|
"rust-lang.org/reference/expressions/if-expr.html#if-expressions):"
|
||||||
|
|
||||||
#: src/control-flow/if-expressions.md:7
|
#: src/control-flow/if-expressions.md:7
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -5976,6 +5978,8 @@ msgid ""
|
|||||||
"In addition, you can use `if` as an expression. The last expression of each\n"
|
"In addition, you can use `if` as an expression. The last expression of each\n"
|
||||||
"block becomes the value of the `if` expression:"
|
"block becomes the value of the `if` expression:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"此外,你也可以將 `if` 當作表達式使用。每個區塊中的最後一行式子將成為 `if` 表"
|
||||||
|
"達式的賦值:"
|
||||||
|
|
||||||
#: src/control-flow/if-expressions.md:22
|
#: src/control-flow/if-expressions.md:22
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -5997,6 +6001,8 @@ msgid ""
|
|||||||
"branch blocks must have the same type. Consider showing what happens if you "
|
"branch blocks must have the same type. Consider showing what happens if you "
|
||||||
"add `;` after `x / 2` in the second example."
|
"add `;` after `x / 2` in the second example."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"因為 `if` 被當作表達式使用,它必須擁有一個特定的型別,因此兩個分支區塊必須擁"
|
||||||
|
"有同樣的型別。試著在第二個範例中的 `x / 2` 之後加上 `;`,並觀察其結果。"
|
||||||
|
|
||||||
#: src/control-flow/if-let-expressions.md:1
|
#: src/control-flow/if-let-expressions.md:1
|
||||||
msgid "# `if let` expressions"
|
msgid "# `if let` expressions"
|
||||||
|
Reference in New Issue
Block a user