From 59f23aec07977db952bbda6135145f598ae2e014 Mon Sep 17 00:00:00 2001 From: Eduardo Bautista <=> Date: Fri, 8 Aug 2014 00:47:47 -0500 Subject: [PATCH 1/2] Update error message on compile --- src/doc/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index a2b3f22c1554b..d31616572ff26 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -517,7 +517,7 @@ note: in expansion of format_args! :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 From b1428279f152c39f5be4c90e649de36fbe914bdf Mon Sep 17 00:00:00 2001 From: Eduardo Bautista <=> Date: Fri, 8 Aug 2014 00:52:09 -0500 Subject: [PATCH 2/2] Single curly braces instead of double are being used --- src/doc/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index d31616572ff26..f8036473b1568 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -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: