about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-03-11 16:37:35 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2017-03-28 11:38:55 -0600
commit6a2190c18e53398191c9d5d9f37c8bcef296402d (patch)
treef1caa2ccae92ef345d5b2f37539b402af1dafbef
parent6d470a9c4a41e97cf7b9d9ab2cc0045d7889d01f (diff)
downloadrust-6a2190c18e53398191c9d5d9f37c8bcef296402d.tar.gz
rust-6a2190c18e53398191c9d5d9f37c8bcef296402d.zip
Remove unneeded comment
-rw-r--r--src/librustdoc/html/markdown.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs
index 3cc95260e3b..09006d9ef82 100644
--- a/src/librustdoc/html/markdown.rs
+++ b/src/librustdoc/html/markdown.rs
@@ -212,12 +212,6 @@ pub fn render(w: &mut fmt::Formatter,
         ret = ret.trim_right().to_owned();
 
         let id = ret.clone();
-        // Discard '<em>', '<code>' tags and some escaped characters,
-        // transform the contents of the header into a hyphenated string
-        // without non-alphanumeric characters other than '-' and '_'.
-        //
-        // This is a terrible hack working around how hoedown gives us rendered
-        // html for text rather than the raw text.
         let id = id.chars().filter_map(|c| {
             if c.is_alphanumeric() || c == '-' || c == '_' {
                 if c.is_ascii() {