Skip to content

Commit ca32bf5

Browse files
authored
Unrolled build for rust-lang#129793
Rollup merge of rust-lang#129793 - lolbinarycat:doc-missing-newlines, r=workingjubilee add extra linebreaks so rustdoc can identify the first sentence there should probably be a lint against this in rustdoc, it causes too many lines to be shown in the short documentation overviews expecially noticable for the slice primative type: https://doc.rust-lang.org/std/index.html
2 parents 9b82580 + 0064bd1 commit ca32bf5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library/core/src/hint.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![stable(feature = "core_hint", since = "1.27.0")]
22

33
//! Hints to compiler that affects how code should be emitted or optimized.
4+
//!
45
//! Hints may be compile time or runtime.
56
67
use crate::{intrinsics, ub_checks};

library/core/src/primitive_docs.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,9 @@ mod prim_array {}
832832
#[doc(alias = "[")]
833833
#[doc(alias = "]")]
834834
#[doc(alias = "[]")]
835-
/// A dynamically-sized view into a contiguous sequence, `[T]`. Contiguous here
836-
/// means that elements are laid out so that every element is the same
835+
/// A dynamically-sized view into a contiguous sequence, `[T]`.
836+
///
837+
/// Contiguous here means that elements are laid out so that every element is the same
837838
/// distance from its neighbors.
838839
///
839840
/// *[See also the `std::slice` module](crate::slice).*

0 commit comments

Comments
 (0)