Skip to content

Commit 71a4280

Browse files
committed
auto merge of rust-lang#16160 : EduardoBautista/rust/use-bang-at-end-of-hello-world, r=alexcrichton
Further into the guide "Hello, world!" is used instead of "Hello, world".
2 parents 06727d4 + c0048de commit 71a4280

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/guide.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Now that you've got your file open, type this in:
152152

153153
```
154154
fn main() {
155-
println!("Hello, world");
155+
println!("Hello, world!");
156156
}
157157
```
158158

@@ -161,7 +161,7 @@ Save the file, and then type this into your terminal window:
161161
```{bash}
162162
$ rustc hello_world.rs
163163
$ ./hello_world # or hello_world.exe on Windows
164-
Hello, world
164+
Hello, world!
165165
```
166166

167167
Success! Let's go over what just happened in detail.
@@ -187,7 +187,7 @@ declaration, with one space in between.
187187
Next up is this line:
188188

189189
```
190-
println!("Hello, world");
190+
println!("Hello, world!");
191191
```
192192

193193
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
205205
used those. Don't be scared of using macros. We'll get to the details
206206
eventually, you'll just have to trust us for now.
207207

208-
Next, `"Hello, world"` is a **string**. Strings are a surprisingly complicated
208+
Next, `"Hello, world!"` is a **string**. Strings are a surprisingly complicated
209209
topic in a systems programming language, and this is a **statically allocated**
210210
string. We will talk more about different kinds of allocation later. We pass
211211
this string as an argument to `println!`, which prints the string to the

0 commit comments

Comments
 (0)