Skip to content

Commit 54db4d6

Browse files
committed
Reaffirm that this is an abstraction
Fixes #29853 Fixes #29852 While these points are true, we're not going for 100% accuracy here, this is introductory material. Changing these things would be more confusing, but it is important to note that we're presenting an abstraction here.
1 parent 57c8a3e commit 54db4d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and a heap. If you’re familiar with how C-like languages use stack allocation,
77
this chapter will be a refresher. If you’re not, you’ll learn about this more
88
general concept, but with a Rust-y focus.
99

10+
As with most things, when learning about them, we’ll use a simplified model to
11+
start. This lets you get a handle on the basics, without getting bogged down
12+
with details which are, for now, irrelevant. The examples we’ll use aren’t 100%
13+
accurate, but are representative for the level we’re trying to learn at right
14+
now. Once you have the basics down, learning more about how allocators are
15+
implemented, virtual memory, and other advanced topics will reveal the leaks in
16+
this particular abstraction.
17+
1018
# Memory management
1119

1220
These two terms are about memory management. The stack and the heap are

0 commit comments

Comments
 (0)