Skip to content

Commit ba17bd0

Browse files
committed
rustdoc: fix emitting duplicate implementors in .js files
The collect() fn checks for double quotes; use them here as well. Fixes: #30219
1 parent 50909f2 commit ba17bd0

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
@@ -783,7 +783,7 @@ fn write_shared(cx: &Context,
783783
try_err!(write!(&mut f, "{}", *implementor), &mydst);
784784
}
785785

786-
try_err!(write!(&mut f, r"implementors['{}'] = [", krate.name), &mydst);
786+
try_err!(write!(&mut f, r#"implementors["{}"] = ["#, krate.name), &mydst);
787787
for imp in imps {
788788
// If the trait and implementation are in the same crate, then
789789
// there's no need to emit information about it (there's inlining

0 commit comments

Comments
 (0)