about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJohn Zhang <john@zhang.io>2015-03-11 16:48:32 -0700
committerJohn Zhang <john@zhang.io>2015-03-11 19:46:55 -0700
commite3b717c7ceae489afb6b94a092c1b81e1882c19e (patch)
treeabde24af72f7a0a151f2b870015415d9ce5b27a0 /src
parent425297a93035bc89663ff5f83d229f6c19341ffb (diff)
downloadrust-e3b717c7ceae489afb6b94a092c1b81e1882c19e.tar.gz
rust-e3b717c7ceae489afb6b94a092c1b81e1882c19e.zip
Cargo build now builds to /target/debug/, changed the docs to reflect that.
Deleted trailing space in hello-cargo.md

Added note about build --release in hello-cargo

thanks to steven klabnik for pointing it out for me

edited out redundant wording
Diffstat (limited to 'src')
-rw-r--r--src/doc/trpl/hello-cargo.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/trpl/hello-cargo.md b/src/doc/trpl/hello-cargo.md
index 587da69d4a6..d077aac7c2d 100644
--- a/src/doc/trpl/hello-cargo.md
+++ b/src/doc/trpl/hello-cargo.md
@@ -78,16 +78,16 @@ Once you have this file in place, we should be ready to build! Try this:
 ```bash
 $ cargo build
    Compiling hello_world v0.0.1 (file:///home/yourname/projects/hello_world)
-$ ./target/hello_world
+$ ./target/debug/hello_world
 Hello, world!
 ```
 
 Bam! We build our project with `cargo build`, and run it with
-`./target/hello_world`. This hasn't bought us a whole lot over our simple use
+`./target/debug/hello_world`. This hasn't bought us a whole lot over our simple use
 of `rustc`, but think about the future: when our project has more than one
 file, we would need to call `rustc` more than once, and pass it a bunch of options to
 tell it to build everything together. With Cargo, as our project grows, we can
-just `cargo build` and it'll work the right way.
+just `cargo build` and it'll work the right way. When you're project is finally ready for release, you can use `cargo build --release` to compile your crates with optimizations.
 
 You'll also notice that Cargo has created a new file: `Cargo.lock`.
 
@@ -163,4 +163,4 @@ much more in-depth guide to Cargo can be found [here](http://doc.crates.io/guide
 
 Now that you've got the tools down, let's actually learn more about the Rust
 language itself. These are the basics that will serve you well through the rest
-of your time with Rust.
\ No newline at end of file
+of your time with Rust.