Skip to content

Commit e3ffde8

Browse files
author
Jonathan Turner
authored
Rollup merge of rust-lang#36563 - vanjacosic:patch-1, r=steveklabnik
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 😇
2 parents 8ccfc69 + 0bd7ef0 commit e3ffde8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/doc/book/getting-started.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,13 @@ $ cd hello_world
230230
231231
## Writing and Running a Rust Program
232232

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

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

240241
```rust
241242
fn main() {

0 commit comments

Comments
 (0)