Skip to content

Commit 6af92d1

Browse files
committed
sigh
1 parent 2fc129c commit 6af92d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/the-stack-and-the-heap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Now, this works pretty well, but not everything can work like this. Sometimes,
182182
you need to pass some memory between different functions, or keep it alive for
183183
longer than a single function’s execution. For this, we can use the heap.
184184

185-
In Rust, you can allocate memory on the stack with the [`Box<T>` type][box].
185+
In Rust, you can allocate memory on the heap with the [`Box<T>` type][box].
186186
Here’s an example:
187187

188188
```rust

0 commit comments

Comments
 (0)