-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Error in code snippet in Chapter 14.3 #2560
Comments
Yes, this is a standard thing rustdoc does. If we wanted to, we could modify the example so it's not shown that way. There are some other tickets about similar stuff elsewhere on the tracker. |
Thanks! I found a hack for this but missed a whole bunch of spots... thank you for helping me find them! |
joeljpresent
pushed a commit
to joeljpresent/rust-book-fr
that referenced
this issue
Apr 13, 2021
Missed these spots in eb60fed :( Fixes rust-lang#2560.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Chapter 14.3, the example gives
add-one/src/lib.rs
asbut it should be without
main
, likeThe listing it references is correct, so there must be some other behaviour adding the surrounding
main
function that needs to be disabled/removed.], hence why I'm opening an issue not a PRThe text was updated successfully, but these errors were encountered: