Skip to content

Commit

Permalink
Rollup merge of rust-lang#36563 - vanjacosic:patch-1, r=steveklabnik
Browse files Browse the repository at this point in the history
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 😇
  • Loading branch information
Jonathan Turner authored Sep 27, 2016
2 parents 8ccfc69 + 0bd7ef0 commit e3ffde8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/doc/book/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,13 @@ $ cd hello_world
## Writing and Running a Rust Program

Next, make a new source file and call it *main.rs*. Rust files always end
in a *.rs* extension. If you’re using more than one word in your filename, use
an underscore to separate them; for example, you'd use *hello_world.rs* rather
than *helloworld.rs*.
We need to create a source file for our Rust program. Rust files always end
in a *.rs* extension. If you are using more than one word in your filename,
use an underscore to separate them; for example, you would use
*my_program.rs* rather than *myprogram.rs*.

Now open the *main.rs* file you just created, and type the following code:
Now, make a new file and call it *main.rs*. Open the file and type
the following code:

```rust
fn main() {
Expand Down

0 comments on commit e3ffde8

Please sign in to comment.