1
Fork 0

Use correct item for links in modules

This commit is contained in:
Manish Goregaokar 2018-01-01 11:56:07 +05:30
parent d6dcc47f0d
commit 8166b59c74

View file

@ -2160,10 +2160,10 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
stab_docs = stab_docs,
docs = if cx.render_type == RenderType::Hoedown {
format!("{}",
shorter(Some(&Markdown(doc_value, &item.links(),
shorter(Some(&Markdown(doc_value, &myitem.links(),
RenderType::Hoedown).to_string())))
} else {
format!("{}", MarkdownSummaryLine(doc_value, &item.links()))
format!("{}", MarkdownSummaryLine(doc_value, &myitem.links()))
},
class = myitem.type_(),
stab = myitem.stability_class().unwrap_or("".to_string()),