Use correct item for links in modules
This commit is contained in:
parent
d6dcc47f0d
commit
8166b59c74
1 changed files with 2 additions and 2 deletions
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue