Skip to content

Commit 08a89b3

Browse files
committed
Use correct item for links in modules
1 parent 186b16e commit 08a89b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,10 +2177,10 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
21772177
stab_docs = stab_docs,
21782178
docs = if cx.render_type == RenderType::Hoedown {
21792179
format!("{}",
2180-
shorter(Some(&Markdown(doc_value, &item.links(),
2180+
shorter(Some(&Markdown(doc_value, &myitem.links(),
21812181
RenderType::Hoedown).to_string())))
21822182
} else {
2183-
format!("{}", MarkdownSummaryLine(doc_value, &item.links()))
2183+
format!("{}", MarkdownSummaryLine(doc_value, &myitem.links()))
21842184
},
21852185
class = myitem.type_(),
21862186
stab = myitem.stability_class().unwrap_or("".to_string()),

0 commit comments

Comments
 (0)