Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
intervall-daniel opened this issue Sep 8, 2022 · 0 comments · Fixed by #3287
Closed
2 tasks done
Milestone

Comments

@intervall-daniel
Copy link

  • I have checked the latest main branch to see if this has already been fixed
  • 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 ...".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants