Skip to content

Commit e9005fb

Browse files
committed
Auto merge of #25761 - ralexstokes:master, r=steveklabnik
Typo in explanation of difference between stack and heap values. `baz` is called at the end of a call to `bar` inside another call to `foo`. `baz` takes a copy of the value `e` which should have a value of 9 if following the rest of the stack trace. This PR fixes this typo and should close #25635.
2 parents 0d64659 + c7f9201 commit e9005fb

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ At the end of `bar()`, it calls `baz()`:
454454
| (2<sup>30</sup>) - 1 | | 5 |
455455
| ... | ... | ... |
456456
| 12 | g | 100 |
457-
| 11 | f | 4 |
457+
| 11 | f | 9 |
458458
| 10 | e | 9 |
459459
| 9 | d | (2<sup>30</sup>) - 1 |
460460
| 8 | c | 5 |

0 commit comments

Comments
 (0)