diff --git a/tools/mdbook-spec/src/lib.rs b/tools/mdbook-spec/src/lib.rs index a9a96a1890..918508a6df 100644 --- a/tools/mdbook-spec/src/lib.rs +++ b/tools/mdbook-spec/src/lib.rs @@ -118,14 +118,14 @@ impl Spec { /// Determines the git ref used for linking to a particular branch/tag in GitHub. fn git_ref(rust_root: &Option) -> Result { let Some(rust_root) = rust_root else { - return Ok("master".into()); + return Ok("main".into()); }; let channel = std::fs::read_to_string(rust_root.join("src/ci/channel")) .context("failed to read src/ci/channel")?; let git_ref = match channel.trim() { // nightly/beta are branches, not stable references. Should be ok // because we're not expecting those channels to be long-lived. - "nightly" => "master".into(), + "nightly" => "main".into(), "beta" => "beta".into(), "stable" => { let version = std::fs::read_to_string(rust_root.join("src/version")) @@ -155,7 +155,7 @@ impl Preprocessor for Spec { Ok(s) => s, Err(e) => { warn_or_err!(&mut diag, "{e:?}"); - "master".into() + "main".into() } };