book icon indicating copy to clipboard operation
book copied to clipboard

Chapter 12.3 Improvement: Text to code inconsistency (repeated use of expect)

Open intervall-daniel opened this issue 3 years ago • 0 comments

  • [x] I have checked the latest main branch to see if this has already been fixed
  • [x] I have searched existing issues and pull requests for duplicates

URL to the section(s) of the book with this problem: https://doc.rust-lang.org/book/ch12-03-improving-error-handling-and-modularity.html

Description of the problem: In the text it says: "Fourth, we use expect repeatedly to handle different errors, ...", but actually at this point expect is only used once.

Suggested fix: Drop that partial sentence, like this: "Fourth, if the user runs our program without specifying ...".

intervall-daniel avatar Sep 08 '22 19:09 intervall-daniel