Skip to content

Commit af4e074

Browse files
committed
more consistent formatting of special terms
1 parent 10c0899 commit af4e074

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/src/glossary.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
### Abstract Byte
44
[abstract byte]: #abstract-byte
55

6-
The "byte" is the smallest unit of storage in Rust.
6+
The *byte* is the smallest unit of storage in Rust.
77
Memory allocations are thought of as storing a list of bytes, and at the lowest level each load returns a list of bytes and each store takes a list of bytes and puts it into memory.
88
(The [representation relation] then defines how to convert between those lists of bytes and higher-level values such as mathematical integers or pointers.)
99

10-
However, a "byte" in the Rust Abstract Machine is more complicated than just an integer in `0..256` -- think of it as there being some extra "shadow state" that is relevant for the Abstract Machine execution (in particular, for whether this execution has UB), but that disappears when compiling the program to assembly.
11-
That's why we call it "abstract byte", to distinguish it from the physical machine byte in `0..256`.
10+
However, a *byte* in the Rust Abstract Machine is more complicated than just an integer in `0..256` -- think of it as there being some extra "shadow state" that is relevant for the Abstract Machine execution (in particular, for whether this execution has UB), but that disappears when compiling the program to assembly.
11+
That's why we call it *abstract byte*, to distinguish it from the physical machine byte in `0..256`.
1212

1313
The most obvious "shadow state" is tracking whether memory is initialized.
1414
See [this blog post](https://www.ralfj.de/blog/2019/07/14/uninit.html) for details, but the gist of it is that bytes in memory are more like `Option<u8>` where `None` indicates that this byte is uninitialized.

0 commit comments

Comments
 (0)