1
Fork 0

Fix bug in librustdoc in which an unmatched "</table>" is emitted.

This commit is contained in:
Jeffrey Seyfried 2016-06-06 08:00:34 +00:00
parent 49de80d7ea
commit 970e15d3c3

View file

@ -1818,7 +1818,10 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
}
}
write!(w, "</table>")
if curty.is_some() {
write!(w, "</table>")?;
}
Ok(())
}
fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Vec<String> {