mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
49d6594278
docs: clarify explicitly freeing heap allocated memory The documentation for `Box::into_raw` didn't mention `drop` and wondered if I was doing something wrong. Based off [this](https://stackoverflow.com/questions/75441199/rust-how-do-i-correctly-free-heap-allocated-memory), I think it's helpful to include the more concise yet explicit way to free heap allocated memory. This is my first rust PR and I went through https://std-dev-guide.rust-lang.org/development/, but let me know if I missed something :) |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |