Skip to content

Commit

Permalink
Fix typo in diagram demonstrating stack vs. heap values
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed May 24, 2015
1 parent 820b1d8 commit c7f9201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/trpl/the-stack-and-the-heap.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ At the end of `bar()`, it calls `baz()`:
| (2<sup>30</sup>) - 1 | | 5 |
| ... | ... | ... |
| 12 | g | 100 |
| 11 | f | 4 |
| 11 | f | 9 |
| 10 | e | 9 |
| 9 | d | (2<sup>30</sup>) - 1 |
| 8 | c | 5 |
Expand Down

2 comments on commit c7f9201

@steenzout
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could someone please regenerate the docs?
in particular, http://doc.rust-lang.org/book/the-stack-and-the-heap.html ?

the online documentation still has this typo and it can be quite confusing and make you waste some time back and forth to be sure you read the page correctly and verify you are understanding the example.
fortunately I thought of trying to make a PR to fix what I thought could be a typo (and be corrected in case it was a mistake) and found this commit.

the advantage of getting stuck is that it means you are actually grasping the concept. :)

@Gankra
Copy link
Contributor

@Gankra Gankra commented on c7f9201 Jul 15, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation also follows the train model. The change is visible in the nightly docs: https://doc.rust-lang.org/nightly/book/the-stack-and-the-heap.html

But will not show up in the stable docs until the version this change is associated with is officially released.

Please sign in to comment.