about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-08-02 05:06:11 +0000
committerbors <bors@rust-lang.org>2014-08-02 05:06:11 +0000
commit71a42807addd42eeaf001ff0ec38a200fbe686ab (patch)
treeec9ef050bf840dca383d3a5808865c895c8b7240
parent06727d4720d6a2818ba6701ae7151c4c8d7ceb9f (diff)
parentc0048dec4a9b0355522dee84902611f9b5f79564 (diff)
downloadrust-71a42807addd42eeaf001ff0ec38a200fbe686ab.tar.gz
rust-71a42807addd42eeaf001ff0ec38a200fbe686ab.zip
auto merge of #16160 : EduardoBautista/rust/use-bang-at-end-of-hello-world, r=alexcrichton
Further into the guide "Hello, world!" is used instead of "Hello, world".
-rw-r--r--src/doc/guide.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md
index aab610fb174..e095a74d6ce 100644
--- a/src/doc/guide.md
+++ b/src/doc/guide.md
@@ -152,7 +152,7 @@ Now that you've got your file open, type this in:
 
 ```
 fn main() {
-    println!("Hello, world");
+    println!("Hello, world!");
 }
 ```
 
@@ -161,7 +161,7 @@ Save the file, and then type this into your terminal window:
 ```{bash}
 $ rustc hello_world.rs
 $ ./hello_world # or hello_world.exe on Windows
-Hello, world
+Hello, world!
 ```
 
 Success! Let's go over what just happened in detail.
@@ -187,7 +187,7 @@ declaration, with one space in between.
 Next up is this line:
 
 ```
-    println!("Hello, world");
+    println!("Hello, world!");
 ```
 
 This line does all of the work in our little program. There are a number of
@@ -205,7 +205,7 @@ to mention: Rust's macros are significantly different than C macros, if you've
 used those. Don't be scared of using macros. We'll get to the details
 eventually, you'll just have to trust us for now.
 
-Next, `"Hello, world"` is a **string**. Strings are a surprisingly complicated
+Next, `"Hello, world!"` is a **string**. Strings are a surprisingly complicated
 topic in a systems programming language, and this is a **statically allocated**
 string. We will talk more about different kinds of allocation later. We pass
 this string as an argument to `println!`, which prints the string to the