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 {