Skip to content

Commit ace0e8e

Browse files
committed
Translate a paragraph
we = Vec
1 parent 06ce987 commit ace0e8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/phantom-data.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,15 @@ Vec's destructor.
118118
値をドロップするということを心配する必要がないと結論付けます。
119119
この結果、 Vec のデストラクタを使用して、無制限という性質を作り出すことを可能にするのです。
120120

121+
<!--
121122
In order to tell dropck that we *do* own values of type T, and therefore may
122123
drop some T's when *we* drop, we must add an extra PhantomData saying exactly
123124
that:
125+
-->
126+
127+
ドロップチェックに、型 T の値を*本当に*保持していて、それ故に *Vec*
128+
ドロップする際、なにか T の値もドロップするかもしれないと伝えるために、
129+
追加の PhantomData を加えなければなりません。
124130

125131
```
126132
use std::marker;

0 commit comments

Comments
 (0)