File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ enum is the sum of the sets of possible values for each variant. -->
33
33
<!-- We use the `::` syntax to use the name of each variant: they’re scoped by the name
34
34
of the `enum` itself. This allows both of these to work: -->
35
35
各ヴァリアントの名前を使うためには、 ` :: ` 構文を使います。
36
- ` enum ` 自体の名前によってスコープするのです 。
36
+ すなわち、ヴァリアントの名前は ` enum ` 自体の名前によってスコープ化されています 。
37
37
これにより、以下は動きます。
38
38
39
39
``` rust
@@ -52,7 +52,7 @@ let y: BoardGameTurn = BoardGameTurn::Move { squares: 1 };
52
52
53
53
<!-- Both variants are named `Move`, but since they’re scoped to the name of
54
54
the enum, they can both be used without conflict. -->
55
- どちらのヴァリアントも ` Move ` という名前ですが、列挙型の名前でスコープされているため 、衝突することなく使うことができます。
55
+ どちらのヴァリアントも ` Move ` という名前ですが、列挙型の名前でスコープ化されているため 、衝突することなく使うことができます。
56
56
57
57
<!-- A value of an enum type contains information about which variant it is,
58
58
in addition to any data associated with that variant. This is sometimes
You can’t perform that action at this time.
0 commit comments