Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7414d28

Browse files
Replace empty href with "#"
1 parent 7f9ab03 commit 7414d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render/print_item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer,
7575
);
7676
}
7777
}
78-
write!(buf, "<a class=\"{}\" href=\"\">{}</a>", item.type_(), item.name.as_ref().unwrap());
78+
write!(buf, "<a class=\"{}\" href=\"#\">{}</a>", item.type_(), item.name.as_ref().unwrap());
7979
write!(
8080
buf,
8181
"<button id=\"copy-path\" onclick=\"copy_path(this)\">\

0 commit comments

Comments
 (0)