]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #33743 - royalstream:royalstream-stack-doc, r=steveklabnik
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 21 May 2016 03:38:10 +0000 (09:08 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Sat, 21 May 2016 03:38:10 +0000 (09:08 +0530)
commit0c949d8cc352022dc1af7f1c5f6c9aef6f085422
tree9984dcdc19e377dabf6d230caa22997b1b74a07c
parent3f4d91514733c81b41a2f7249cf7a87e997de2d7
parent519cc8280cef3f809149080b44b9d66f967368aa
Rollup merge of #33743 - royalstream:royalstream-stack-doc, r=steveklabnik

Book: small improvement to a table to make it clearer

This table is used as an example of four heap values where two of them got deallocated leaving a gap.
It also has stack variables.
Instead of four stack variables I propose three, that way there's no misleading connection between the number of stack variables and heap variables.
But more importantly: three of the four stack variables had the same name (**y**) which could be confusing to a beginner, I changed this as well.