diff options
Diffstat (limited to 'src/rustdoc/markdown_index_pass.rs')
| -rw-r--r-- | src/rustdoc/markdown_index_pass.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/rustdoc/markdown_index_pass.rs b/src/rustdoc/markdown_index_pass.rs index 2aa9afe03ad..7280786db7e 100644 --- a/src/rustdoc/markdown_index_pass.rs +++ b/src/rustdoc/markdown_index_pass.rs @@ -106,7 +106,7 @@ fn pandoc_header_id(header: ~str) -> ~str { let header = convert_to_lowercase(header); let header = remove_up_to_first_letter(header); let header = maybe_use_section_id(header); - ret header; + return header; fn remove_formatting(s: ~str) -> ~str { str::replace(s, ~"`", ~"") @@ -124,7 +124,7 @@ fn pandoc_header_id(header: ~str) -> ~str { let s = str::replace(s, ~":", ~""); let s = str::replace(s, ~"&", ~""); let s = str::replace(s, ~"^", ~""); - ret s; + return s; } fn replace_with_hyphens(s: ~str) -> ~str { str::replace(s, ~" ", ~"-") | 
