Skip to content

Commit 970e15d

Browse files
committed
Fix bug in librustdoc in which an unmatched "</table>" is emitted.
1 parent 49de80d commit 970e15d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustdoc/html/render.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,10 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
18181818
}
18191819
}
18201820

1821-
write!(w, "</table>")
1821+
if curty.is_some() {
1822+
write!(w, "</table>")?;
1823+
}
1824+
Ok(())
18221825
}
18231826

18241827
fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Vec<String> {

0 commit comments

Comments
 (0)