diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-07 02:09:51 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-07 02:09:51 +0800 |
| commit | d6a43d47247db4118dab06dac5f44093c83cf9a7 (patch) | |
| tree | 66d48cfb4802bf65774cc0af703a9ab87bc49ab8 /library/std/src | |
| parent | 4d215e2426d52ca8d1af166d5f6b5e172afbff67 (diff) | |
| parent | 934be9b63bd5d4801807125664aad702abf79070 (diff) | |
Rollup merge of #132617 - uellenberg:fix-rendered-doc, r=cuviper
Fix an extra newline in rendered std doc Fixes #132564  (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.
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/lib.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index b5450d0a20c..5b94f036248 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -32,14 +32,12 @@ //! //! Once you are familiar with the contents of the standard library you may //! begin to find the verbosity of the prose distracting. At this stage in your -//! development you may want to press the <code> -//! <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> Summary</code> button near the -//! top of the page to collapse it into a more skimmable view. +//! development you may want to press the +//! "<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> Summary" +//! button near the top of the page to collapse it into a more skimmable view. //! //! While you are looking at the top of the page, also notice the -//! <code>source</code> link. Rust's API documentation comes with the source +//! "Source" link. Rust's API documentation comes with the source //! code and you are encouraged to read it. The standard library source is //! generally high quality and a peek behind the curtains is //! often enlightening. |
