about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-01-25 01:16:45 +0000
committerbors <bors@rust-lang.org>2016-01-25 01:16:45 +0000
commit6866f1361debf5857856ff95eeee806bb7bea738 (patch)
tree86c3d8791ef3c1b4cdaebe7b82ad0f71f6863ca8 /src
parentba356ffbc47e75b2902fe42b6a57f7e26df191e3 (diff)
parenta469cef1abecbb0bb850f785ef6541792fdc9827 (diff)
downloadrust-6866f1361debf5857856ff95eeee806bb7bea738.tar.gz
rust-6866f1361debf5857856ff95eeee806bb7bea738.zip
Auto merge of #31159 - dirk:dirk/clarify-cargo-lock, r=steveklabnik
Also remove a "finally" in the section about building for release to make it feel a bit friendlier.
Diffstat (limited to 'src')
-rw-r--r--src/doc/book/getting-started.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/doc/book/getting-started.md b/src/doc/book/getting-started.md
index 18d5ca5be1a..77d468254b6 100644
--- a/src/doc/book/getting-started.md
+++ b/src/doc/book/getting-started.md
@@ -511,15 +511,17 @@ programming languages. For complex projects composed of multiple crates, it’s
 much easier to let Cargo coordinate the build. Using Cargo, you can run `cargo
 build`, and it should work the right way.
 
-## Building for Release
+### Building for Release
 
-When your project is finally ready for release, you can use `cargo build
+When your project is ready for release, you can use `cargo build
 --release` to compile your project with optimizations. These optimizations make
 your Rust code run faster, but turning them on makes your program take longer
 to compile. This is why there are two different profiles, one for development,
 and one for building the final program you’ll give to a user.
 
-Running this command also causes Cargo to create a new file called
+### What Is That `Cargo.lock`?
+
+Running `cargo build` also causes Cargo to create a new file called
 *Cargo.lock*, which looks like this:
 
 ```toml