UTF-8
Errata: July 23, 2024The following corrections were made to all formats in July 2024.
Chapter 6, Section 6.1 Pointers
, page 177
After Figure 6.1, Paragraph 5: 264
should be 264
Chapter 6, Section 6.4.2 Step 1: Having a process scan its own memory
, page 205
After Listing 6.14, Paragraph 6: 264
should be 264
The following corrections were made to the book's second printing in Winter 2021.
Inside Front Cover and Chapter 6, Section 6.2.2 Rust's pointer ecosystem
, page 186
In IFC Figure and Figure 6.4, the title of the bottom left card Arc
should be Vec
.
Chapter 1, Section 1.3.2 Your first Rust program
, page 8
After second code snippet, Paragraph 1: ...Rust from listing 1.2.
should be ...Rust from listing 1.1.
Chapter 1, Section 1.6.1 Goal of Rust: Safety
, page 13
After Listing 1.3, Paragraph 1: ...code for listing 1.4:
should be ...code for listing 1.3:
Chapter 2, Section 2.2.1 Defining variables and calling functions
, page 35
In Paragraph 1, Sentence 2: a + b = 30 should be ( a + b ) + ( c + d ) = 90
Chapter 5, Section 5.4.1 Looking inside an f32
, page 145
After Table 5.1, Paragraph 1: See lines 32-38 of listing 5.10 and the explanation provided shortly in
section 5.3.5 to learn how...
should be See listing 5.9 for an explanation provided of how the bit pattern...
Chapter 5, Section 5.4.2 Isolating the sign bit
, page 146
In bullet point 3, the Annotation The sign bit has now been positioned in the least significant postion.
should be The sign bit has now been moved to the least significant position.
Chapter 5, Section 5.4.3 Isolating the exponent
, page 146
In Paragraph 2, Sentence 3: As discussed in section 5.3.2, 127 is known...
should be As shown in table 5.1, 127 is known...
Chapter 5, Section 5.5 Fixed-point number formats
, page 153
In Listing 5.12, Annotation 2: ...in section 5.3.5.
should be ...in Listing 5.9.
Chapter 7, Section 7.7.7 Working with keys and values with HashMap and BTreeMap
, page 242
In Grey Box What is a hash? What is hashing?
, in the code snippet:
unsafe {
std::mem::transmute::
}
should be
u32::from(first)