Skip to content

Commit 246b1db

Browse files
Rollup merge of rust-lang#39777 - mina86:gib, r=steveklabnik
book: binary prefixed are defined by IEC and not in SI Binary prefixes (such as Gi for ‘gibi-’ in GiB) are defined by International Electrotechnical Commission (IEC) and not in the International System of Units (SI). Though to be honest I’d just reword the previous paragraph to use ‘1 GiB’.
2 parents 9f082d2 + 8685adb commit 246b1db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/src/the-stack-and-the-heap.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ to a large number, representing how much RAM your computer has. For example, if
8686
you have a gigabyte of RAM, your addresses go from `0` to `1,073,741,823`. That
8787
number comes from 2<sup>30</sup>, the number of bytes in a gigabyte. [^gigabyte]
8888

89-
[^gigabyte]: ‘Gigabyte’ can mean two things: 10^9, or 2^30. The SI standard resolved this by stating that ‘gigabyte’ is 10^9, and ‘gibibyte’ is 2^30. However, very few people use this terminology, and rely on context to differentiate. We follow in that tradition here.
89+
[^gigabyte]: ‘Gigabyte’ can mean two things: 10<sup>9</sup>, or 2<sup>30</sup>. The IEC standard resolved this by stating that ‘gigabyte’ is 10<sup>9</sup>, and ‘gibibyte’ is 2<sup>30</sup>. However, very few people use this terminology, and rely on context to differentiate. We follow in that tradition here.
9090

9191
This memory is kind of like a giant array: addresses start at zero and go
9292
up to the final number. So here’s a diagram of our first stack frame:

0 commit comments

Comments
 (0)