mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Auto merge of #25924 - FuGangqiang:master, r=Gankro
This commit is contained in:
commit
baf508ba20
|
@ -38,7 +38,7 @@ Finally, Cargo generated a ‘Hello, world!’ for us. Check out `src/main.rs`:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!")
|
println!("Hello, world!");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -362,7 +362,7 @@ everything that follows it is part of it, until the next section starts.
|
||||||
Cargo uses the dependencies section to know what dependencies on external
|
Cargo uses the dependencies section to know what dependencies on external
|
||||||
crates you have, and what versions you require. In this case, we’ve used version `0.3.0`.
|
crates you have, and what versions you require. In this case, we’ve used version `0.3.0`.
|
||||||
Cargo understands [Semantic Versioning][semver], which is a standard for writing version
|
Cargo understands [Semantic Versioning][semver], which is a standard for writing version
|
||||||
numbers. If we wanted to use the latest version we could use `*` or we could use a range
|
numbers. If we wanted to use the latest version we could use `*` or we could use a range
|
||||||
of versions. [Cargo’s documentation][cargodoc] contains more details.
|
of versions. [Cargo’s documentation][cargodoc] contains more details.
|
||||||
|
|
||||||
[semver]: http://semver.org
|
[semver]: http://semver.org
|
||||||
|
|
Loading…
Reference in a new issue