Skip to content

Commit

Permalink
Be more consistent with "Hello, world!"
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoBautista committed Aug 1, 2014
1 parent b495933 commit c0048de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/doc/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Now that you've got your file open, type this in:

```
fn main() {
println!("Hello, world");
println!("Hello, world!");
}
```

Expand All @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand Down

5 comments on commit c0048de

@bors
Copy link
Contributor

@bors bors commented on c0048de Aug 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on c0048de Aug 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging EduardoBautista/rust/use-bang-at-end-of-hello-world = c0048de into auto

@bors
Copy link
Contributor

@bors bors commented on c0048de Aug 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EduardoBautista/rust/use-bang-at-end-of-hello-world = c0048de merged ok, testing candidate = 71a4280

@bors
Copy link
Contributor

@bors bors commented on c0048de Aug 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 71a4280

Please sign in to comment.