Merge pull request #637 from avrong/master

Add spaces around the = sign in dependencies
This commit is contained in:
Carol (Nichols || Goulding)
2017-04-24 11:21:55 -04:00
committed by GitHub

View File

@@ -356,7 +356,7 @@ add these few lines at the bottom:
```toml
[dependencies]
rand="0.3.0"
rand = "0.3.0"
```
The `[dependencies]` section of `Cargo.toml` is like the `[package]` section:
@@ -367,7 +367,7 @@ which Cargo understands to be any release thats compatible with this specific
Cargo understands [Semantic Versioning][semver], which is a standard for writing version
numbers. A bare number like above is actually shorthand for `^0.3.0`,
meaning "anything compatible with 0.3.0".
If we wanted to use only `0.3.0` exactly, we could say `rand="=0.3.0"`
If we wanted to use only `0.3.0` exactly, we could say `rand = "=0.3.0"`
(note the two equal signs).
We could also use a range of versions.
[Cargos documentation][cargodoc] contains more details.