Skip to content

Commit 7728742

Browse files
committed
Fix pointer value in the 'complex example'
The `f` argument will reference the actual value in the `d` box, not the box in the `bar`'s stack frame.
1 parent fd2626c commit 7728742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ At the end of `bar()`, it calls `baz()`:
464464
| (2<sup>30</sup>) - 2 | | 5 |
465465
| ... | ... | ... |
466466
| 12 | g | 100 |
467-
| 11 | f |9 |
467+
| 11 | f |(2<sup>30</sup>) - 2 |
468468
| 10 | e | → 9 |
469469
| 9 | d | → (2<sup>30</sup>) - 2 |
470470
| 8 | c | 5 |

0 commit comments

Comments
 (0)