Skip to content

Commit 172d321

Browse files
authored
Updated "Getting started". Trying to fix #34523
- Updated paragraphs and wording for clarity. - Renamed `helloworld.rs` to `myprogram.rs` to make it clearer that it's an unrelated example.
1 parent f39039e commit 172d321

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/doc/book/getting-started.md

+6-5
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)