Skip to content

Commit 759590b

Browse files
committed
Also update the fallback branch names to main
1 parent 44191c8 commit 759590b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/mdbook-spec/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl Spec {
118118
/// Determines the git ref used for linking to a particular branch/tag in GitHub.
119119
fn git_ref(rust_root: &Option<PathBuf>) -> Result<String> {
120120
let Some(rust_root) = rust_root else {
121-
return Ok("master".into());
121+
return Ok("main".into());
122122
};
123123
let channel = std::fs::read_to_string(rust_root.join("src/ci/channel"))
124124
.context("failed to read src/ci/channel")?;
@@ -155,7 +155,7 @@ impl Preprocessor for Spec {
155155
Ok(s) => s,
156156
Err(e) => {
157157
warn_or_err!(&mut diag, "{e:?}");
158-
"master".into()
158+
"main".into()
159159
}
160160
};
161161

0 commit comments

Comments
 (0)