-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Missing information about source file name - Getting Started #34523
Comments
Hm, this
All other places mention
I would call it unfortunate place for file naming details: we switch from |
sophiajt
pushed a commit
to sophiajt/rust
that referenced
this issue
Sep 26, 2016
Docs: Update to "Getting Started" section I came across rust-lang#34523 and wanted to suggest a solution. See commit for details. It seemed like a good place to start contributing, let me know if I did anything wrong 😇
sophiajt
pushed a commit
to sophiajt/rust
that referenced
this issue
Sep 27, 2016
Docs: Update to "Getting Started" section I came across rust-lang#34523 and wanted to suggest a solution. See commit for details. It seemed like a good place to start contributing, let me know if I did anything wrong 😇
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the rust book Getting Started section, it is mentioned that we can have source file name as "hello_world.rs", however in the cargo introduction section if we move the file inside src directory and run cargo build, it fails. Having the file renamed as main.rs makes cargo build success. This is not mentioned in the getting started document.
I think the Getting Started section should either say that the file name should be main.rs or if the file name is other than main.rs, it should mention on how to make cargo build succeed by telling the cargo to look for hello_world.rs in the src directory.
https://doc.rust-lang.org/book/getting-started.html
The text was updated successfully, but these errors were encountered: