Skip to content

Commit

Permalink
Use correct item for links in modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Jan 1, 2018
1 parent 186b16e commit 08a89b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2177,10 +2177,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()),
Expand Down

0 comments on commit 08a89b3

Please sign in to comment.