Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Printed | Page 606 Table 21-1 |
On page 606, in Table 21-1, the last three rows of the table are incorrect. |
Jason Orendorff |
Apr 08, 2024 | |
Printed | Page "Doc-Tests", p. 202 First paragraph |
Near the end of the section on doc-tests, the book says: |
Jason Orendorff |
Apr 05, 2024 | |
Printed | Page "Debugging Macros", p. 610 First paragraph |
The book says to add "-Z unstable-options --pretty expanded" to the rustc command line. |
Jason Orendorff |
Apr 05, 2024 | |
Page 550 Figure 20-2 and 2nd paragraph |
`async_std::block_on` -> `async_std::task::block_on` Note from the Author or Editor: |
Sungmann Cho | Jan 31, 2024 | ||
Page Expressions Chapter 6, Loops section Very end of loops section |
let strings: Vec<String> = error_messages(); Note from the Author or Editor: |
Naaol Shupare | Jun 02, 2023 | ||
Page 196 1st paragraph |
Instead of Note from the Author or Editor: |
Martin | Nov 06, 2022 | ||
Page page 706 near bottom (index) |
RefCell type, borrow methid Note from the Author or Editor: |
Tom | Sep 08, 2022 | ||
Page 642 1st paragraph after bullet points |
"the offset_from method gives the distance between two pointers in bytes" Note from the Author or Editor: |
Tom | Jun 22, 2022 | ||
Page 431 Bottom table, last column |
In the table 17-2, in the row of ch.is_ascii_digit(), there is a formatting issue in the 'Examples' cell on the right. The example "!'-'.is_ascii_digit()" is formatted as regular text, while it should be a fixed-width font. Note from the Author or Editor: |
Kris van Rens | Jan 20, 2022 | ||
Page 47 code block, upper half of page |
When attempting to write the output, if an error occurs the message contains args.filename, which is the input file, not the output file. Note from the Author or Editor: |
Andrew Ring | Jan 19, 2022 | ||
Page 45 code block, middle of page |
When attempting to write the output, if an error occurs the message contains args.filename, which is the input file, not the output file. Note from the Author or Editor: |
Andrew Ring | Jan 19, 2022 | ||
Page n/a text |
Typo: Note from the Author or Editor: |
Anonymous | Jan 04, 2022 | ||
Page 60 5th paragraph |
Hello! Note from the Author or Editor: |
Kris van Rens | Dec 08, 2021 | ||
Page ? Chapter 13 "Utility Traits" |
Chapter 13 "Utility Traits" has following sentence: Note from the Author or Editor: |
Sergei Shirokov | Oct 25, 2021 | ||
Page 402 slice.rsplit(is_sep), slice.rsplit_mut(is_sep) |
The description for these methods refers to slice and slice_mut as analogous methods when in fact they are called split and split_mut (which are covered immediately above on the same page). Note from the Author or Editor: |
D Patrick | Sep 17, 2021 | ||
Page 378 Code block in try_fold and try_rfold section |
While not a compile error, this line has an unnecessary ‘&’ reference: Note from the Author or Editor: |
Pete Kazmier | Sep 13, 2021 | ||
ePub | Page n/a text |
Current Copy: |
Anonymous | Sep 09, 2021 | Nov 05, 2021 |
ePub | Page n/a text |
Current Copy: |
Anonymous | Sep 09, 2021 | Nov 05, 2021 |
Page 178 last paragraph |
two functions in this example -> three functions in this example Note from the Author or Editor: |
Sungmann Cho | Aug 23, 2021 | ||
Page 270 1st paragraph, 2nd sentence |
The sentence says that `Creature` is a subtrait and supertrait of `Visible`, while the latter is the supertrait. Note from the Author or Editor: |
xehpuk | Aug 22, 2021 | ||
Page 266 Last sentence |
I don't understand the meaning of the sentence. It's exactly the same syntax as used in the example above, with `str` instead of `char`. Note from the Author or Editor: |
xehpuk | Aug 22, 2021 | ||
Printed | Page 152 Assignment, third paragraph |
"The full list is given in Table 6-1, at the end of this chapter", but the table starts on page 135 at the beginning of the chapter. |
Anonymous | Aug 15, 2021 | Nov 05, 2021 |
Printed | Page 134 Precedence and Associativity, first sentence |
"Table 6-1 summarizes of Rust expression syntax." => "Table 6-1 summarizes Rust's expression syntax." |
Anonymous | Aug 15, 2021 | Nov 05, 2021 |
Printed | Page 163 println!() code block |
“failed to lookup” => “failed to look up” |
xehpuk | Aug 07, 2021 | Nov 05, 2021 |
Printed | Page 73 3rd paragraph, 1st sentence |
“String literals” (two spaces) => “String literals” |
xehpuk | Aug 03, 2021 | Nov 05, 2021 |
Page 33 2nd code block |
In the write_image fn, there's a call of encoder.encode with &pixels als the 1st param. pixels is already a slice, so no need to borrow (clippy::needless_borrow). Note from the Author or Editor: |
xehpuk | Aug 02, 2021 | ||
Printed | Page 20 Last paragraph, 1st sentence |
“401 BAD REQUEST” => “400 BAD REQUEST” |
xehpuk | Jul 31, 2021 | Nov 05, 2021 |
Page 663 1st paragraph |
missing opening double quote |
Sungmann Cho | Jul 11, 2021 | Nov 05, 2021 | |
Page 492 last paragraph |
wha tever -> whatever |
Sungmann Cho | Jul 09, 2021 | Nov 05, 2021 | |
Page 442 6th paragraph |
Returnsan -> Returns an |
Sungmann Cho | Jul 04, 2021 | Nov 05, 2021 | |
Page 263 1st paragraph |
tthe -> the |
Sungmann Cho | Jul 01, 2021 | Nov 05, 2021 | |
Page 60 7th paragraph |
“f64 (primitive type) => “f64 (primitive type)" |
Sungmann Cho | Jun 28, 2021 | Nov 05, 2021 | |
Page 249 8th paragraph |
iit's unpacking -> it's unpacking |
Sungmann Cho | Jun 28, 2021 | Nov 05, 2021 | |
Chapter 2 First code block for "Mapping from Pixels to Complex Numbers" |
The test for pixel_to_point uses a size where bounds.0 and bounds.1 are both 100, and the width and height are both 2. The result is that this test passes when a copy/paste error leads to code like this: ` im: upper_left.im - pixel.1 as f64 * height / bounds.0 as f64`, it also passes when you would use the width instead of height in that formula, but that's more likely to become a warning because height would be unused in pixel_to_point. Note from the Author or Editor: |
Joeri Samson | May 25, 2021 | Jun 11, 2021 | |
Chapter 2 6th code block in "A Concurrent Mandelbrot Program" |
The crossbeam dependency is added with version constraint = "0.2", this leads to a compilation error, because the closure to spawner.spawn has 0 arguments in crossbeam 0.2, but the code is written for crossbeam 0.8 which expects 1 argument. Note from the Author or Editor: |
Joeri Samson | May 25, 2021 | Jun 11, 2021 | |
preface Navigating This Book, 4th paragraph |
The paragraph describes the remaining chapters of the book but omits chapter 20 on asynchronous programming. Note from the Author or Editor: |
Anonymous | May 23, 2021 | Jun 11, 2021 | |
Chapter 2 Safari Chapter 2 |
In chapter 2 under "Concurrent Mandelbrot Program", it says: Note from the Author or Editor: |
Vince | May 12, 2021 | Jun 11, 2021 | |
Chapter 3. Expressions > Why Rust Has loop > 11th Paragraph |
std::process:exit() -> std::process::exit() Note from the Author or Editor: |
Sungmann Cho | Sep 06, 2020 | Jun 11, 2021 |