Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 1.6/ja/book/enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ enum is the sum of the sets of possible values for each variant. -->
<!-- We use the `::` syntax to use the name of each variant: they’re scoped by the name
of the `enum` itself. This allows both of these to work: -->
各ヴァリアントの名前を使うためには、 `::` 構文を使います。
`enum` 自体の名前によってスコープするのです
`enum` 自体の名前によってスコープ化するのです
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文意がより明確になるように、次のように訳すのはどうでしょうか。
「すなわち、ヴァリアントの名前は enum 自体の名前によってスコープ化されています。」

修正理由:

  • コロンの代わりとなる接続詞を補う
  • 代名詞 they が指示する語を明示する

これにより、以下は動きます。

```rust
Expand All @@ -52,7 +52,7 @@ let y: BoardGameTurn = BoardGameTurn::Move { squares: 1 };

<!-- Both variants are named `Move`, but since they’re scoped to the name of
the enum, they can both be used without conflict. -->
どちらのヴァリアントも `Move` という名前ですが、列挙型の名前でスコープされているため、衝突することなく使うことができます。
どちらのヴァリアントも `Move` という名前ですが、列挙型の名前でスコープ化されているため、衝突することなく使うことができます。

<!-- A value of an enum type contains information about which variant it is,
in addition to any data associated with that variant. This is sometimes
Expand Down
1 change: 1 addition & 0 deletions TranslationTable.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
| release | リリース
| return | 返す
| scope | スコープ
| scoped | スコープ化された
| script | スクリプト
| shadow | 覆い隠す
| shadowing | シャドーイング
Expand Down