Skip to content

Fix translation of "scoped" #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
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` 自体の名前によってスコープ化されています
これにより、以下は動きます。

```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