about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authormitaa <mitaa.ceb@gmail.com>2016-03-08 08:07:57 +0100
committermitaa <mitaa.ceb@gmail.com>2016-03-08 08:07:57 +0100
commitf1cf2a6fcbab26240fcab7fd13f3bb6ad81dd941 (patch)
treeae8d410ec0bc45599f2d7de69eaa122ba8db6df0 /src
parent8b7c3f20e83de20518abb879f7a0e41b6e93414f (diff)
rustdoc: correct src-link url
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index 2cb2b299e40..eb2d7868945 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,