Skip to content

Commit a64d643

Browse files
Update librustdoc ID tests
1 parent 758519c commit a64d643

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustdoc/html/markdown/tests.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ fn test_unique_id() {
2929
"examples-2",
3030
"method.into_iter-1",
3131
"foo-1",
32-
"main",
33-
"search",
32+
"main-1",
33+
"search-1",
3434
"methods",
3535
"examples-3",
3636
"method.into_iter-2",
@@ -191,8 +191,8 @@ fn test_header_ids_multiple_blocks() {
191191
t(
192192
&mut map,
193193
"# Main",
194-
"<h1 id=\"main\" class=\"section-header\">\
195-
<a href=\"#main\">Main</a></h1>",
194+
"<h1 id=\"main-1\" class=\"section-header\">\
195+
<a href=\"#main-1\">Main</a></h1>",
196196
);
197197
t(
198198
&mut map,

0 commit comments

Comments
 (0)