about summary refs log tree commit diff
path: root/src/librustdoc/html/render/mod.rs
diff options
context:
space:
mode:
authorAlexis (Poliorcetics) Bourget <ab_contribs@poliorcetiq.eu>2024-12-26 23:41:58 +0100
committerAlexis (Poliorcetics) Bourget <ab_contribs@poliorcetiq.eu>2025-01-30 21:12:50 +0100
commita063cf5f1c151873f753905c75d8e67115308f9d (patch)
treea41c19cd31d2bd221bd0b97bdf5ea7ff3d5b9458 /src/librustdoc/html/render/mod.rs
parenta6434ef9c0246fa39eecb34e22807da2a68f3904 (diff)
downloadrust-a063cf5f1c151873f753905c75d8e67115308f9d.tar.gz
rust-a063cf5f1c151873f753905c75d8e67115308f9d.zip
fix(rustdoc): always use a channel when linking to doc.rust-lang.org
Diffstat (limited to 'src/librustdoc/html/render/mod.rs')
-rw-r--r--src/librustdoc/html/render/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index a27a9d202eb..f7dcb87e4f3 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -79,7 +79,7 @@ use crate::html::markdown::{
 use crate::html::static_files::SCRAPE_EXAMPLES_HELP_MD;
 use crate::html::{highlight, sources};
 use crate::scrape_examples::{CallData, CallLocation};
-use crate::{DOC_RUST_LANG_ORG_CHANNEL, try_none};
+use crate::{DOC_RUST_LANG_ORG_VERSION, try_none};
 
 pub(crate) fn ensure_trailing_slash(v: &str) -> impl fmt::Display + '_ {
     fmt::from_fn(move |f| {
@@ -480,7 +480,7 @@ fn scrape_examples_help(shared: &SharedContext<'_>) -> String {
     content.push_str(&format!(
         "## More information\n\n\
       If you want more information about this feature, please read the [corresponding chapter in \
-      the Rustdoc book]({DOC_RUST_LANG_ORG_CHANNEL}/rustdoc/scraped-examples.html)."
+      the Rustdoc book]({DOC_RUST_LANG_ORG_VERSION}/rustdoc/scraped-examples.html)."
     ));
 
     let mut ids = IdMap::default();