We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c46fd commit afd3e8bCopy full SHA for afd3e8b
src/librustdoc/html/markdown.rs
@@ -1334,7 +1334,7 @@ impl<'a> Markdown<'a> {
1334
return String::new();
1335
}
1336
1337
- let mut s = String::with_capacity(self.content.len() * 3 / 2);
+ let mut s = String::new();
1338
html::push_html(&mut s, self.into_iter());
1339
1340
s
@@ -1475,7 +1475,7 @@ impl MarkdownItemInfo<'_> {
1475
_ => event,
1476
});
1477
1478
- let mut s = String::with_capacity(md.len() * 3 / 2);
1479
1480
ids.handle_footnotes(|ids, existing_footnotes| {
1481
let p = HeadingLinks::new(p, None, ids, HeadingOffset::H1);
0 commit comments