From 79102e327c9d694f42c67d165380248253c0ac69 Mon Sep 17 00:00:00 2001 From: Keshav Kini Date: Tue, 20 Oct 2015 16:07:17 -0500 Subject: [PATCH] =?UTF-8?q?Remove=20reference=20to=20`hello=5Fworld.rs`=20?= =?UTF-8?q?in=20TRPL=20=C2=A72.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When reading this paragraph, the beginning Rust programmer is starting to write a Hello World program. We have just told her to name the file `main.rs`, and immediately afterward, a `hello_world.rs` is mentioned. I changed this to an unrelated filename (incidentally one that appears in this repository) to make it clear that this is just an example. Also, wording it as a declarative sentence rather than an imperative one further separates it from the Hello World instructions in this section. --- src/doc/trpl/hello-world.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/doc/trpl/hello-world.md b/src/doc/trpl/hello-world.md index c3de956d29dcb..2f9166751d965 100644 --- a/src/doc/trpl/hello-world.md +++ b/src/doc/trpl/hello-world.md @@ -37,8 +37,9 @@ If we’re on Windows and not using PowerShell, the `~` may not work. Consult th documentation for our shell for more details. Let’s make a new source file next. We’ll call our file `main.rs`. Rust files -always end in a `.rs` extension. If we’re using more than one word in our -filename, use an underscore: `hello_world.rs` rather than `helloworld.rs`. +always end in a `.rs` extension, and if we’re using more than one word in a +Rust filename, we use an underscore: for example, `linked_list.rs`, not +`linkedlist.rs` or `LinkedList.rs`. Now that we’ve got our file open, type this in: