-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Removes 'main{' and '}' from listing 11-12 so it compiles. #1339
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
Conversation
Hm, sorry, I'm a bit confused. What is happening here? This shouldn't have any |
Ok, I try to give a better description of what I wanted to solved with this commit : -I checkout version b56c8f0
This does compile (with
Having a public function inside the main function seemed strange to me (I'm just learning rust). Also the fact that there is a missing indentation level inside main seemed suspect. I tryed on listing 11-13, saw that the main function was not added ; It apparently came from the added Hope this helps, |
The playground integration and mdbook test auto wraps examples in main, a better solution than adding |
I'm a bit surprised it does given the inclusion of |
I updated my branch according to @carols10cents ' recommendation, thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Code snipet was not marked as " ```rust,ignore", then when copied it was surrounded with a "main {}" block which prevented it fom compiling.