about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustdoc/html/markdown.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs
index 6fd8eb4de5f..c76a47ed25b 100644
--- a/src/librustdoc/html/markdown.rs
+++ b/src/librustdoc/html/markdown.rs
@@ -800,7 +800,7 @@ pub fn render(w: &mut fmt::Formatter,
                                                              .find(|t| &*t.0 == &*link) {
             new_target.to_owned()
         } else {
-            return 0;
+            link
         };
 
         let content = unsafe {