Skip to content

Commit 049b9e4

Browse files
committed
doc: add missing word
Also, whitespace fixes
1 parent 02fbf31 commit 049b9e4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ After `italic()` is over, its frame is deallocated, leaving only `bold()` and
185185
| **3** | **c**|**1** |
186186
| **2** | **b**|**100**|
187187
| **1** | **a**| **5** |
188-
| 0 | x | 42 |
188+
| 0 | x | 42 |
189189

190190
And then `bold()` ends, leaving only `main()`:
191191

@@ -554,8 +554,8 @@ Managing the memory for the stack is trivial: The machine
554554
increments or decrements a single value, the so-called “stack pointer”.
555555
Managing memory for the heap is non-trivial: heap-allocated memory is freed at
556556
arbitrary points, and each block of heap-allocated memory can be of arbitrary
557-
size, the memory manager must generally work much harder to identify memory for
558-
reuse.
557+
size, so the memory manager must generally work much harder to
558+
identify memory for reuse.
559559

560560
If you’d like to dive into this topic in greater detail, [this paper][wilson]
561561
is a great introduction.
@@ -579,4 +579,3 @@ comes at the cost of either significant runtime support (e.g. in the form of a
579579
garbage collector) or significant programmer effort (in the form of explicit
580580
memory management calls that require verification not provided by the Rust
581581
compiler).
582-

0 commit comments

Comments
 (0)