Skip to content

Commit 5b9d23f

Browse files
committed
"タグ付きユニオン" -> "タグ付き共用体"
1 parent 7ec8e51 commit 5b9d23f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

1.6/ja/book/enums.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ enforce that you’re accessing the data in the enum safely. For instance,
6262
you can’t simply try to destructure a value as if it were one of the
6363
possible variants: -->
6464
列挙型の値は、ヴァリアントに関連するデータに加え、その値自身がどのヴァリアントであるかという情報を持っています。
65-
これを「タグ付きユニオン」(tagged union) ということもあります。
65+
これを「タグ付き共用体」(tagged union) ということもあります。
6666
データが、それ自身がどの型なのかを示す「タグ」をもっているためです。
6767
コンパイラはこの情報を用いて、列挙型内のデータへ安全にアクセスすることを強制します。
6868
例えば、値をどれか一つのヴァリアントであるかのようにみなして、その中身を取り出すということはできません。

TranslationTable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
| symbol | シンボル
110110
| syntactic sugar | 糖衣構文
111111
| system | システム
112-
| tagged union | タグ付きユニオン
112+
| tagged union | タグ付き共用体
113113
| tick | クオート
114114
| trait | トレイト
115115
| type inference | 型推論

0 commit comments

Comments
 (0)