about summary refs log tree commit diff
path: root/src/librustdoc/markdown_index_pass.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustdoc/markdown_index_pass.rs')
-rw-r--r--src/librustdoc/markdown_index_pass.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/markdown_index_pass.rs b/src/librustdoc/markdown_index_pass.rs
index 87a73f5c9d3..36eb5e77ad6 100644
--- a/src/librustdoc/markdown_index_pass.rs
+++ b/src/librustdoc/markdown_index_pass.rs
@@ -152,7 +152,7 @@ pub fn pandoc_header_id(header: &str) -> ~str {
         // Collapse sequences of whitespace to a single dash
         // XXX: Hacky implementation here that only covers
         // one or two spaces.
-        let s = str::trim(s);
+        let s = s.trim();
         let s = str::replace(s, "  ", "-");
         let s = str::replace(s, " ", "-");
         return s;