Skip to content

Commit 7f65cae

Browse files
committed
Tweak wording of comment
1 parent 0f57cb8 commit 7f65cae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cargo/sources/git/utils.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
6666
//! Another issue pointed out in #8364 was that `Cargo.lock` files were no
6767
//! longer compatible on stable and nightly with each other. The underlying
6868
//! issue is that Cargo was serializing `branch = "master"` *differently* on
69-
//! nightly than it was on stable. Historical implementations of Cargo
70-
//! desugared `branch = "master"` to having not dependency directives in
71-
//! `Cargo.lock`, which means when reading `Cargo.lock` we can't differentiate
72-
//! what's for the default branch and what's for the `master` branch.
69+
//! nightly than it was on stable. Historical implementations of Cargo would
70+
//! encode `DefaultBranch` and `Branch("master")` the same way in `Cargo.lock`,
71+
//! so when reading a lock file we have no way of differentiating between the
72+
//! two.
7373
//!
7474
//! To handle this difference in encoding of `Cargo.lock` we'll be employing
7575
//! the standard scheme to change `Cargo.lock`:

0 commit comments

Comments
 (0)