We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9df2e70 commit 2b7608aCopy full SHA for 2b7608a
src/scope/move/partial_move.md
@@ -56,7 +56,7 @@ not be required as the definition of `age` would copy the data from
56
-->
57
この例では、`age`変数をヒープ上に保持し、部分的ムーブを説明しています。
58
上記コードで`ref`を削除すると、`person.age`の所有権が`age`変数にムーブされるため、エラーになります。
59
-もしも`person.age`がスタック上に保持されていたら、
+もしも`Person.age`がスタック上に保持されていたら、
60
`age`の定義が`person.age`をムーブすることなくデータをコピーするので、
61
`ref`は必須ではないのですが、実際にはヒープ上に保持されているため`ref`は必須です。
62
0 commit comments