Skip to content

Commit 9caaf70

Browse files
authored
Merge pull request #188 from tatsuya6502/control-flow
用語統一:制御フロー
2 parents b763fe6 + 04ac86d commit 9caaf70

10 files changed

+13
-12
lines changed

TranslationTable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
| constant | 定数
5353
| constructor | コンストラクタ
5454
| continuous integration | 継続的インテグレーション
55+
| control flow | 制御フロー
5556
| crate | クレート
5657
| dangling | ダングリング
5758
| data race | データ競合

src/SUMMARY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
- [データ型](ch03-02-data-types.md)
4747
- [関数](ch03-03-how-functions-work.md)
4848
- [コメント](ch03-04-comments.md)
49-
- [フロー制御](ch03-05-control-flow.md)
49+
- [制御フロー](ch03-05-control-flow.md)
5050

5151
<!--
5252
- [Understanding Ownership](ch04-00-understanding-ownership.md)
@@ -78,8 +78,8 @@
7878
-->
7979
- [Enumとパターンマッチング](ch06-00-enums.md)
8080
- [Enumを定義する](ch06-01-defining-an-enum.md)
81-
- [`match`フロー制御演算子](ch06-02-match.md)
82-
- [`if let`で簡潔なフロー制御](ch06-03-if-let.md)
81+
- [`match`制御フロー演算子](ch06-02-match.md)
82+
- [`if let`で簡潔な制御フロー](ch06-03-if-let.md)
8383

8484
<!--
8585
## Basic Rust Literacy

src/appendix-01-keywords.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ higher-ranked lifetimeについては議論の余地ありか
8989
* `const` - 定数要素か定数の生ポインタを定義する
9090
* `continue` - 次のループの繰り返しに継続する
9191
* `crate` - 外部のクレートかマクロが定義されているクレートを表すマクロ変数をリンクする
92-
* `else` - `if``if let`フロー制御構文の規定
92+
* `else` - `if``if let`制御フロー構文の規定
9393
* `enum` - 列挙型を定義する
9494
* `extern` - 外部のクレート、関数、変数をリンクする
9595
* `false` - bool型のfalseリテラル

src/ch00-00-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ expressions, and the `if let` control flow construct. You’ll use structs and
263263
enums to make custom types in Rust.
264264
-->
265265

266-
第5章は、構造体とメソッドについて議論し、第6章はenum、`match`式、`if let`フロー制御構文を講義します
266+
第5章は、構造体とメソッドについて議論し、第6章はenum、`match`式、`if let`制御フロー構文を講義します
267267
構造体とenumを使用してRustにおいて独自の型を作成します。
268268

269269
<!--

src/ch03-00-common-programming-concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ and control flow. These foundations will be in every Rust program, and learning
2323
them early will give you a strong core to start from.
2424
-->
2525

26-
具体的には、変数、基本的な型、関数、コメント、そしてフロー制御について学びます
26+
具体的には、変数、基本的な型、関数、コメント、そして制御フローについて学びます
2727
これらの基礎は全てのRustプログラムに存在するものであり、それらを早期に学ぶことにより、強力な基礎を築くことになるでしょう。
2828

2929
<!--

src/ch03-05-control-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Control Flow
33
-->
44

5-
## フロー制御
5+
## 制御フロー
66

77
<!--
88
Deciding whether or not to run some code depending on if a condition is true

src/ch06-01-defining-an-enum.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,5 +702,5 @@ value.
702702
一般的に、`Option<T>`値を使うには、各列挙子を処理するコードが欲しくなります。
703703
`Some(T)`値がある時だけ走る何らかのコードが欲しくなり、このコードが内部の`T`を使用できます。
704704
`None`値があった場合に走る別のコードが欲しくなり、そちらのコードは`T`値は使用できない状態になります。
705-
`match`式が、enumとともに使用した時にこれだけの動作をするフロー制御文法要素になります:
705+
`match`式が、enumとともに使用した時にこれだけの動作をする制御フロー文法要素になります:
706706
enumの列挙子によって、違うコードが走り、そのコードがマッチした値の中のデータを使用できるのです。

src/ch06-02-match.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## The `match` Control Flow Operator
33
-->
44

5-
## `match`フロー制御演算子
5+
## `match`制御フロー演算子
66

77
<!--
88
Rust has an extremely powerful control flow operator called `match` that allows
@@ -15,7 +15,7 @@ possible cases are handled.
1515
-->
1616

1717
Rustには、一連のパターンに対して値を比較し、マッチしたパターンに応じてコードを実行させてくれる`match`と呼ばれる、
18-
非常に強力なフロー制御演算子があります。パターンは、リテラル値、変数名、ワイルドカードやその他多数のもので構成することができます;
18+
非常に強力な制御フロー演算子があります。パターンは、リテラル値、変数名、ワイルドカードやその他多数のもので構成することができます;
1919
第18章で、全ての種類のパターンと、その目的については解説します。`match`のパワーは、
2020
パターンの表現力とコンパイラが全てのありうるパターンを処理しているかを確認してくれるという事実に由来します。
2121

src/ch06-03-if-let.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Concise Control Flow with `if let`
33
-->
44

5-
## `if let`で簡潔なフロー制御
5+
## `if let`で簡潔な制御フロー
66

77
<!--
88
The `if let` syntax lets you combine `if` and `let` into a less verbose way to

src/ch19-04-advanced-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ At the time, we skipped over some details in this code. In Chapter 6 in “The
340340
return the same type. So, for example, the following code doesn’t work:
341341
-->
342342

343-
この時点では、このコードの詳細の一部を飛ばしました。第6章の「`match`フロー制御演算子」節で、
343+
この時点では、このコードの詳細の一部を飛ばしました。第6章の「`match`制御フロー演算子」節で、
344344
`match`アームは全て同じ型を返さなければならないと議論しました。従って、例えば以下のコードは動きません:
345345

346346
```rust,ignore

0 commit comments

Comments
 (0)