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.
2 parents 63f39a6 + 22eb466 commit a93c8b6Copy full SHA for a93c8b6
src/doc/trpl/the-stack-and-the-heap.md
@@ -266,7 +266,7 @@ Rust programs use [jemalloc][jemalloc] for this purpose.
266
Anyway, back to our example. Since this memory is on the heap, it can stay
267
alive longer than the function which allocates the box. In this case, however,
268
it doesn’t.[^moving] When the function is over, we need to free the stack frame
269
-for `main()`. `Box<T>`, though, has a trick up its sleve: [Drop][drop]. The
+for `main()`. `Box<T>`, though, has a trick up its sleeve: [Drop][drop]. The
270
implementation of `Drop` for `Box` deallocates the memory that was allocated
271
when it was created. Great! So when `x` goes away, it first frees the memory
272
allocated on the heap:
0 commit comments