Skip to content

Commit c9629d6

Browse files
committed
Auto merge of #32117 - mitaa:patch-3, r=alexcrichton
rustdoc: correct src-link url It would have been nice for htmldocck to catch this, especially since there are rustdoc tests specifically for checking src-links. fixes #32113
2 parents c1fb50f + f1cf2a6 commit c9629d6

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)