Skip to content

Commit d7c5358

Browse files
Make all headings display the same by creating an anchor right beside them
1 parent 42fcba7 commit d7c5358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render/print_item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
431431
write!(
432432
w,
433433
"<h2 id=\"{id}\" class=\"section-header\">\
434-
<a href=\"#{id}\">{name}</a>\
434+
{name}<a href=\"#{id}\" class=\"anchor\"</a>\
435435
</h2>{ITEM_TABLE_OPEN}",
436436
id = cx.derive_id(my_section.id()),
437437
name = my_section.name(),

0 commit comments

Comments
 (0)