mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:34:52 -06:00
Change more filenames to use *
This commit is contained in:
@@ -424,15 +424,15 @@ happens if next week version `v0.3.15` of the `rand` crate comes out and
|
|||||||
contains an important bug fix but also contains a regression that will break
|
contains an important bug fix but also contains a regression that will break
|
||||||
your code?
|
your code?
|
||||||
|
|
||||||
The answer to this problem is the `Cargo.lock` file, which was created the
|
The answer to this problem is the *Cargo.lock* file, which was created the
|
||||||
first time you ran `cargo build` and is now in your `guessing_game` directory.
|
first time you ran `cargo build` and is now in your *guessing_game* directory.
|
||||||
When you build a project for the first time, Cargo figures out all the
|
When you build a project for the first time, Cargo figures out all the
|
||||||
versions of the dependencies that fit the criteria and then writes them to
|
versions of the dependencies that fit the criteria and then writes them to
|
||||||
the `Cargo.lock` file. When you build your project in the future, Cargo will
|
the *Cargo.lock* file. When you build your project in the future, Cargo will
|
||||||
see that the `Cargo.lock` file exists and use the versions specified there
|
see that the *Cargo.lock* file exists and use the versions specified there
|
||||||
rather than doing all the work of figuring out versions again. This lets you
|
rather than doing all the work of figuring out versions again. This lets you
|
||||||
have a reproducible build automatically. In other words, your project will
|
have a reproducible build automatically. In other words, your project will
|
||||||
remain at `0.3.14` until you explicitly upgrade, thanks to the `Cargo.lock`
|
remain at `0.3.14` until you explicitly upgrade, thanks to the *Cargo.lock*
|
||||||
file.
|
file.
|
||||||
|
|
||||||
#### Updating a Crate to Get a New Version
|
#### Updating a Crate to Get a New Version
|
||||||
|
|||||||
@@ -440,15 +440,15 @@ happens if next week version `v0.3.15` of the `rand` crate comes out and
|
|||||||
contains an important bug fix but also contains a regression that will break
|
contains an important bug fix but also contains a regression that will break
|
||||||
your code?
|
your code?
|
||||||
|
|
||||||
The answer to this problem is the `Cargo.lock` file, which was created the
|
The answer to this problem is the *Cargo.lock* file, which was created the
|
||||||
first time you ran `cargo build` and is now in your `guessing_game` directory.
|
first time you ran `cargo build` and is now in your *guessing_game* directory.
|
||||||
When you build a project for the first time, Cargo figures out all the
|
When you build a project for the first time, Cargo figures out all the
|
||||||
versions of the dependencies that fit the criteria and then writes them to
|
versions of the dependencies that fit the criteria and then writes them to
|
||||||
the `Cargo.lock` file. When you build your project in the future, Cargo will
|
the *Cargo.lock* file. When you build your project in the future, Cargo will
|
||||||
see that the `Cargo.lock` file exists and use the versions specified there
|
see that the *Cargo.lock* file exists and use the versions specified there
|
||||||
rather than doing all the work of figuring out versions again. This lets you
|
rather than doing all the work of figuring out versions again. This lets you
|
||||||
have a reproducible build automatically. In other words, your project will
|
have a reproducible build automatically. In other words, your project will
|
||||||
remain at `0.3.14` until you explicitly upgrade, thanks to the `Cargo.lock`
|
remain at `0.3.14` until you explicitly upgrade, thanks to the *Cargo.lock*
|
||||||
file.
|
file.
|
||||||
|
|
||||||
#### Updating a Crate to Get a New Version
|
#### Updating a Crate to Get a New Version
|
||||||
|
|||||||
Reference in New Issue
Block a user