Skip to content

Commit 6a2190c

Browse files
Remove unneeded comment
1 parent 6d470a9 commit 6a2190c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/librustdoc/html/markdown.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,6 @@ pub fn render(w: &mut fmt::Formatter,
212212
ret = ret.trim_right().to_owned();
213213

214214
let id = ret.clone();
215-
// Discard '<em>', '<code>' tags and some escaped characters,
216-
// transform the contents of the header into a hyphenated string
217-
// without non-alphanumeric characters other than '-' and '_'.
218-
//
219-
// This is a terrible hack working around how hoedown gives us rendered
220-
// html for text rather than the raw text.
221215
let id = id.chars().filter_map(|c| {
222216
if c.is_alphanumeric() || c == '-' || c == '_' {
223217
if c.is_ascii() {

0 commit comments

Comments
 (0)