Skip to content

Commit

Permalink
Rollup merge of #107476 - notriddle:notriddle/item-decl-3, r=Guillaum…
Browse files Browse the repository at this point in the history
…eGomez

rustdoc: remove unnecessary wrapper `div.item-decl` from HTML
  • Loading branch information
JohnTitor authored Jan 31, 2023
2 parents 401564d + 7080f80 commit b10e601
Show file tree
Hide file tree
Showing 74 changed files with 549 additions and 590 deletions.
8 changes: 4 additions & 4 deletions src/librustdoc/html/highlight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ pub(crate) fn render_example_with_highlighting(
write_footer(out, playground_button);
}

/// Highlights `src` as a macro, returning the HTML output.
pub(crate) fn render_macro_with_highlighting(src: &str, out: &mut Buffer) {
write_header(out, "macro", None, Tooltip::None);
/// Highlights `src` as an item-decl, returning the HTML output.
pub(crate) fn render_item_decl_with_highlighting(src: &str, out: &mut Buffer) {
write!(out, "<pre class=\"rust item-decl\">");
write_code(out, src, None, None);
write_footer(out, None);
write!(out, "</pre>");
}

/// Highlights `src` as a source code page, returning the HTML output.
Expand Down
Loading

0 comments on commit b10e601

Please sign in to comment.