Skip to content

Commit 000868e

Browse files
committed
Auto merge of #12251 - c-git:patch-1, r=weihanglo
docs: clarify the use of `default` branch instead of `main` by default Update specifying-dependencies.md to show not specifying the branch for git doesn't always use the main branch.
2 parents 56bb8c4 + 89ca816 commit 000868e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/src/reference/specifying-dependencies.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ Cargo will fetch the `git` repository at this location then look for a
140140
of a workspace and setting `git` to the repository containing the workspace).
141141

142142
Since we haven’t specified any other information, Cargo assumes that
143-
we intend to use the latest commit on the main branch to build our package.
143+
we intend to use the latest commit on the default branch branch
144+
to build our package, which may not necessarily be the main branch.
144145
You can combine the `git` key with the `rev`, `tag`, or `branch` keys to
145146
specify something else. Here's an example of specifying that you want to use
146147
the latest commit on a branch named `next`:

0 commit comments

Comments
 (0)