From f1cf2a6fcbab26240fcab7fd13f3bb6ad81dd941 Mon Sep 17 00:00:00 2001 From: mitaa Date: Tue, 8 Mar 2016 08:07:57 +0100 Subject: [PATCH] rustdoc: correct src-link url --- src/librustdoc/html/render.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 2cb2b299e401..eb2d78689451 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -1454,7 +1454,7 @@ impl<'a> Item<'a> { // has anchors for the line numbers that we're linking to. } else if self.item.def_id.is_local() { self.cx.local_sources.get(&PathBuf::from(&self.item.source.filename)).map(|path| { - format!("{root}src/{krate}/{path}.html#{href}", + format!("{root}src/{krate}/{path}#{href}", root = self.cx.root_path, krate = self.cx.layout.krate, path = path,