Skip to content

Commit

Permalink
Auto merge of #11021 - 4TT1L4:patch-1, r=weihanglo
Browse files Browse the repository at this point in the history
Update cargo-toml-vs-cargo-lock.md

 - Improved wording ('rev' is not a line)
  • Loading branch information
bors committed Aug 25, 2022
2 parents 9ded34a + 7e6c487 commit 716d401
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/doc/src/guide/cargo-toml-vs-cargo-lock.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ could happen. There could be more commits to `regex` in the meantime, and my
build would include new commits while yours would not. Therefore, we would
get different builds. This would be bad because we want reproducible builds.

We could fix this problem by putting a `rev` line in our `Cargo.toml`:
We could fix this problem by defining a specific `rev` value in our `Cargo.toml`,
so Cargo could know exactly which revision to use when building the package:

```toml
[dependencies]
Expand Down

0 comments on commit 716d401

Please sign in to comment.