about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2015-09-03 21:10:48 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2015-09-03 21:10:48 +0200
commitf6f31dd14382d207be8e08229ec783033e28bc0d (patch)
treea04c365b6dd6c64de6c50b37b3f6a7f8e59a26ff
parent1661947014fc2ecbbb7a30b1604499500dcf767e (diff)
downloadrust-f6f31dd14382d207be8e08229ec783033e28bc0d.tar.gz
rust-f6f31dd14382d207be8e08229ec783033e28bc0d.zip
book: improve paragraph on stack de-allocation
-rw-r--r--src/doc/trpl/the-stack-and-the-heap.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/the-stack-and-the-heap.md b/src/doc/trpl/the-stack-and-the-heap.md
index e7e98c5828c..91b892fccaa 100644
--- a/src/doc/trpl/the-stack-and-the-heap.md
+++ b/src/doc/trpl/the-stack-and-the-heap.md
@@ -41,8 +41,8 @@ and just consider the local variables we’re allocating. So in this case, when
 This is automatically handled for you, as you can see, we didn’t have to write
 any special Rust code or anything.
 
-When the function is over, its stack frame gets deallocated. This happens
-automatically, we didn’t have to do anything special here.
+When the function exits, its stack frame gets deallocated. This happens
+automatically as well.
 
 That’s all there is for this simple program. The key thing to understand here
 is that stack allocation is very, very fast. Since we know all the local