Fix off-by-one error in address description.

If the addresses range from 0 to 2^30-1, there are 2^30 addresses, not 2^30-1 as the text originally said.
This commit is contained in:
Pascal Sommer 2017-05-12 16:49:19 +02:00 committed by GitHub
parent 9f20a0856b
commit 420a5ae0ed
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ like this:
| 1 | y | 42 |
| 0 | x | → (2<sup>30</sup>) - 1 |
We have (2<sup>30</sup>) - 1 addresses in our hypothetical computer with 1GB of RAM. And since
We have (2<sup>30</sup>) addresses in our hypothetical computer with 1GB of RAM. And since
our stack grows from zero, the easiest place to allocate memory is from the
other end. So our first value is at the highest place in memory. And the value
of the struct at `x` has a [raw pointer][rawpointer] to the place weve