Skip to content

Commit

Permalink
auto merge of #16345 : EduardoBautista/rust/fix-error-message-in-guid…
Browse files Browse the repository at this point in the history
…e, r=steveklabnik

Just some simple changes to the guide.
  • Loading branch information
bors committed Aug 19, 2014
2 parents ef5ad07 + b142827 commit eaf810a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/guide.md
Expand Up @@ -517,7 +517,7 @@ note: in expansion of format_args!
<std macros>:1:1: 3:2 note: in expansion of println!
src/hello_world.rs:4:5: 4:42 note: expansion site
error: aborting due to previous error
Could not execute process `rustc src/hello_world.rs --crate-type bin --out-dir /home/you/projects/hello_world/target -L /home/you/projects/hello_world/target -L /home/you/projects/hello_world/target/deps` (status=101)
Could not compile `hello_world`.
```

Rust will not let us use a value that has not been initialized. So why let us
Expand All @@ -532,7 +532,7 @@ in the middle of a string." We add a comma, and then `x`, to indicate that we
want `x` to be the value we're interpolating. The comma is used to separate
arguments we pass to functions and macros, if you're passing more than one.

When you just use the double curly braces, Rust will attempt to display the
When you just use the curly braces, Rust will attempt to display the
value in a meaningful way by checking out its type. If you want to specify the
format in a more detailed manner, there are a [wide number of options
available](/std/fmt/index.html). For now, we'll just stick to the default:
Expand Down

0 comments on commit eaf810a

Please sign in to comment.