-
Notifications
You must be signed in to change notification settings - Fork 432
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 5 listing 5.4 ch5/ch5-bit-pattern.rs doesn't compile #94
Comments
@bgigous FYI, there's a fix for this issue in PR #56: https://github.com/rust-in-action/code/pull/56/files which was submitted over a year ago, but still hasn't been merged. (I too just ran into this same issue.) From the "ch5" directory on my machine I've just manually applied the PR fix with:
Ewen PS: Note that the code printed in the book (at least in the PDF version from November 2022) is also wrong, so appears the code got partially changed to make it more readable, and never tested again. cc @timClicks PPS: ETA: The same fix is also in PR #80 (https://github.com/rust-in-action/code/pull/80/files), so that's at least 4 people who have run into this same issue with the "obvious typos" in the code in the repo. |
The listing defines variables like
sixtyfivethousand_533
, but references non existent variablessixty5_533
and so on.The text was updated successfully, but these errors were encountered: