Skip to content

Commit

Permalink
Fix bug in librustdoc in which an unmatched "</table>" is emitted.
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed Jun 7, 2016
1 parent 49de80d commit 970e15d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 970e15d

Please sign in to comment.