Skip to content

Commit

Permalink
rustdoc: fix emitting duplicate implementors in .js files
Browse files Browse the repository at this point in the history
The collect() fn checks for double quotes; use them here as well.

Fixes: #30219
  • Loading branch information
birkenfeld committed May 9, 2016
1 parent 50909f2 commit ba17bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ fn write_shared(cx: &Context,
try_err!(write!(&mut f, "{}", *implementor), &mydst);
}

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

0 comments on commit ba17bd0

Please sign in to comment.