Skip to content

Commit f1cf2a6

Browse files
committed
rustdoc: correct src-link url
1 parent 8b7c3f2 commit f1cf2a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ impl<'a> Item<'a> {
14541454
// has anchors for the line numbers that we're linking to.
14551455
} else if self.item.def_id.is_local() {
14561456
self.cx.local_sources.get(&PathBuf::from(&self.item.source.filename)).map(|path| {
1457-
format!("{root}src/{krate}/{path}.html#{href}",
1457+
format!("{root}src/{krate}/{path}#{href}",
14581458
root = self.cx.root_path,
14591459
krate = self.cx.layout.krate,
14601460
path = path,

0 commit comments

Comments
 (0)