Update phantom-data.md

pull/464/head
nomicon-kr 8 months ago committed by GitHub
parent 72c6051ff0
commit 5218d49bcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -41,7 +41,7 @@ struct Vec<T> {
cap: usize,
}
# #[cfg(any())]
#[cfg(any())]
impl<T> Drop for Vec<T> { /* … */ }
```
`impl<T> Drop for Vec<T>`의 존재가 러스트로 하여금 `Vec<T>``T` 타입의 값들을 *소유한다고* (더 정확히는: `Drop` 구현에서 `T` 타입의 값들을 사용할 수 있다고) 간주하게 만들고, 따라서 러스트는 `Vec<T>`가 해제될 때

Loading…
Cancel
Save