diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 21:03:16 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 23:02:55 +1000 |
| commit | f632f466148c7e5571393bb2a24cd628703a60fa (patch) | |
| tree | 6a5fa9687b4df16bf4fe0e6ff564c15f61c4a452 /src/librustdoc/markdown_index_pass.rs | |
| parent | 1553874149c3c37b94d75e9122092b131ba74c77 (diff) | |
| download | rust-f632f466148c7e5571393bb2a24cd628703a60fa.tar.gz rust-f632f466148c7e5571393bb2a24cd628703a60fa.zip | |
std: convert str::trim* to methods.
Diffstat (limited to 'src/librustdoc/markdown_index_pass.rs')
| -rw-r--r-- | src/librustdoc/markdown_index_pass.rs | 2 |
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; |
