Skip to content

Commit

Permalink
Make all headings display the same by creating an anchor right beside…
Browse files Browse the repository at this point in the history
… them
  • Loading branch information
GuillaumeGomez committed Dec 5, 2023
1 parent 42fcba7 commit d7c5358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/render/print_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
write!(
w,
"<h2 id=\"{id}\" class=\"section-header\">\
<a href=\"#{id}\">{name}</a>\
{name}<a href=\"#{id}\" class=\"anchor\"</a>\
</h2>{ITEM_TABLE_OPEN}",
id = cx.derive_id(my_section.id()),
name = my_section.name(),
Expand Down

0 comments on commit d7c5358

Please sign in to comment.