about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDaniel Albert <albert_daniel@t-online.de>2015-08-01 20:53:19 +0200
committerDaniel Albert <albert_daniel@t-online.de>2015-08-01 20:53:19 +0200
commit3dfab40bbca155e7bda34050886dac2682fa5d09 (patch)
tree5b09d0e13fcbd320093213bd212746d753c739eb /src
parent832e5a02cd41b3a20d1142b47867da4aa5033f03 (diff)
downloadrust-3dfab40bbca155e7bda34050886dac2682fa5d09.tar.gz
rust-3dfab40bbca155e7bda34050886dac2682fa5d09.zip
Fix off-by-one error
Diffstat (limited to 'src')
-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 ff81590cc03..cfab268a7c5 100644
--- a/src/doc/trpl/the-stack-and-the-heap.md
+++ b/src/doc/trpl/the-stack-and-the-heap.md
@@ -73,7 +73,7 @@ frame. But before we can show what happens when `foo()` is called, we need to
 visualize what’s going on with memory. Your operating system presents a view of
 memory to your program that’s pretty simple: a huge list of addresses, from 0
 to a large number, representing how much RAM your computer has. For example, if
-you have a gigabyte of RAM, your addresses go from `0` to `1,073,741,824`. That
+you have a gigabyte of RAM, your addresses go from `0` to `1,073,741,823`. That
 number comes from 2<sup>30</sup>, the number of bytes in a gigabyte.
 
 This memory is kind of like a giant array: addresses start at zero and go
@@ -551,7 +551,7 @@ is a great introduction.
 
 [wilson]: http://www.cs.northwestern.edu/~pdinda/icsclass/doc/dsa.pdf
 
-## Semantic impact 
+## Semantic impact
 
 Stack-allocation impacts the Rust language itself, and thus the developer’s
 mental model. The LIFO semantics is what drives how the Rust language handles