summaryrefslogtreecommitdiff
path: root/Box deallocation principle.md
diff options
context:
space:
mode:
Diffstat (limited to 'Box deallocation principle.md')
-rw-r--r--Box deallocation principle.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/Box deallocation principle.md b/Box deallocation principle.md
new file mode 100644
index 0000000..10975c4
--- /dev/null
+++ b/Box deallocation principle.md
@@ -0,0 +1,6 @@
+[[Rust principles]]
+[[When heap data is deallocated]]
+
+---
+
+If a variable owns a box, when Rust deallocates the variable’s frame, then Rust deallocates the box’s heap memory. \ No newline at end of file