Skip to content

Commit 52c2a45

Browse files
Rollup merge of rust-lang#132617 - uellenberg:fix-rendered-doc, r=cuviper
Fix an extra newline in rendered std doc Fixes rust-lang#132564 ![17308581942254367500907812250579](https://github.com/user-attachments/assets/9e946c49-c0a6-40ba-ab69-b80fe0e085e1) (taken from the issue above) The problem with the formatting is due to that newline between `<code>` and `<svg>`. Any newlines outside of the code (i.e., within elements inside of it) are fine.
2 parents 28f7e7b + afc66fe commit 52c2a45

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

std/src/lib.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@
3232
//!
3333
//! Once you are familiar with the contents of the standard library you may
3434
//! begin to find the verbosity of the prose distracting. At this stage in your
35-
//! development you may want to press the <code>
36-
//! <svg style="width:0.75rem;height:0.75rem" viewBox="0 0 12 12"
37-
//! stroke="currentColor" fill="none">
38-
//! <path d="M2,2l4,4l4,-4M2,6l4,4l4,-4"/></svg> Summary</code> button near the
39-
//! top of the page to collapse it into a more skimmable view.
35+
//! development you may want to press the
36+
//! "<svg style="width:0.75rem;height:0.75rem" viewBox="0 0 12 12" stroke="currentColor" fill="none"><path d="M2,2l4,4l4,-4M2,6l4,4l4,-4"/></svg>&nbsp;Summary"
37+
//! button near the top of the page to collapse it into a more skimmable view.
4038
//!
4139
//! While you are looking at the top of the page, also notice the
42-
//! <code>source</code> link. Rust's API documentation comes with the source
40+
//! "Source" link. Rust's API documentation comes with the source
4341
//! code and you are encouraged to read it. The standard library source is
4442
//! generally high quality and a peek behind the curtains is
4543
//! often enlightening.

0 commit comments

Comments
 (0)