Errata

Command-Line Rust

Errata for Command-Line Rust

Submit your own errata for this product.

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
Page Pages 47-48
Last paragraph of 47

Just a small note:
The book states "Notice that it starts renumbering the lines for each file" in regards to using "cat -n" with multiple files. I think the GNU version of cat works differently as it does not restart the numbering for each file, it just continues counting up.
Not a big deal but if one tries to make their own expected results instead of copying it from the github, one could get different results on linux, causing the tests to fail.

Note from the Author or Editor:
I've made a note that I'm showing the BSD version, which is the output expected by the tests and that the GNU version works differently.

Anonymous  Jul 08, 2022  Feb 03, 2023
Page 37
Last paragraph

I believe this sentence "return the Err variant of Option to the caller" should be "return the Err variant of Result to the caller"

Note from the Author or Editor:
Thank you for the report. I've corrected the text.

Anonymous  Nov 26, 2022  Feb 03, 2023
Page 50
3rd paragraph

chapter 3 is building "catr" program but it is referred to in the tutorial as "echor", the previous program.

same error again on page 51.

Very minor nit but it caused me to expect we were rewriting echor with the new lib approach before continuing on to catr - so some flipping back and forth.

great book, btw - fantastic teaching approach.

Note from the Author or Editor:
Confirmed and fixed. Thanks for the report.

Ed Sweeney  Mar 23, 2022  Feb 03, 2023
Page 97
10th paragraph

"As mentioned in Chapter 3, bytes may equate to characters for ASCII, but Unicode characters may require multiple bytes. The file tests/inputs/atlamal.txt contains many such examples:"

Chapter 3 -> Chapter 4

Based on the content, this sentence seems to relate to Chapter 4, not Chapter 3.

Note from the Author or Editor:
Fixed. Thank you.

Sungmann Cho  May 14, 2023  Mar 29, 2024
Page 149
1st paragraph

`enums` -> `enum`s

Note from the Author or Editor:
Fixed. Thank you.

Sungmann Cho  Jun 05, 2023  Mar 29, 2024