rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.82k stars 263 forks source link

Issues in destructor #356

Open Arthur-Milchior opened 2 years ago

Arthur-Milchior commented 2 years ago

"// Hyper-optimized: deallocate the box's contents for it without droping the contents." Is repeated twice, and I think "for it" is a typo.

Also, I think that in "After we deallocate the box's ptr in SuperBox's destructor, " it should be "my_box"