Rollup merge of #32931 - deepak:gh-issue-32928-update-cargo-in-getting-started-doc, r=GuillaumeGomez

Doc fix: Update Cargo.toml in book/getting-started

The Cargo.toml mentioned in book/getting-started
is missing the section called `[dependencies]`

fixes https://github.com/rust-lang/rust/issues/32928
This commit is contained in:
Manish Goregaokar 2016-04-16 01:16:44 +05:30
commit 50932f5c6a
No known key found for this signature in database
GPG Key ID: 3BBF4D3E2EF79F98

View File

@ -575,8 +575,12 @@ look something like this:
name = "hello_world"
version = "0.1.0"
authors = ["Your Name <you@example.com>"]
[dependencies]
```
Do not worry about the `[dependencies]` line, we will come back to it later.
Cargo has populated *Cargo.toml* with reasonable defaults based on the arguments
you gave it and your `git` global configuration. You may notice that Cargo has
also initialized the `hello_world` directory as a `git` repository.