]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: correct src-link url
authormitaa <mitaa.ceb@gmail.com>
Tue, 8 Mar 2016 07:07:57 +0000 (08:07 +0100)
committermitaa <mitaa.ceb@gmail.com>
Tue, 8 Mar 2016 07:07:57 +0000 (08:07 +0100)
src/librustdoc/html/render.rs

index 2cb2b299e401709173db83d8856ce3c28a35c464..eb2d78689451eec6cb1749baa133bee866e0dd70 100644 (file)
@@ -1454,7 +1454,7 @@ fn href(&self) -> Option<String> {
         // 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,