rust box: fix address "one byte" apart

This commit is contained in:
Mahdi Dibaiee 2023-09-14 20:22:14 +01:00
parent dc01b828c6
commit 0d38d039ad

View File

@ -81,7 +81,7 @@ Process 65188 stopped
``` ```
Our program allocates two variables on the stack directly here. Notice that they Our program allocates two variables on the stack directly here. Notice that they
are allocated right next to each other, their address only one bit apart. Most are allocated right next to each other, their address only one byte apart. Most
primitive types are allocated on the stack, and are copied when being passed primitive types are allocated on the stack, and are copied when being passed
around because they are small enough, so that copying them around is more around because they are small enough, so that copying them around is more
reasonable than allocating them in the heap and passing around a pointer to reasonable than allocating them in the heap and passing around a pointer to