Rollup merge of #131512 - j7nw4r:master, r=jhpratt

Fixing rustDoc for LayoutError.

I started reading the the std lib from start to finish and noticed that this rustdoc comment wasn't correct.
This commit is contained in:
Matthias Krüger 2024-10-11 12:21:08 +02:00 committed by GitHub
commit cac36288b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -540,7 +540,8 @@ const fn inner(element_layout: Layout, n: usize) -> Result<Layout, LayoutError>
)] )]
pub type LayoutErr = LayoutError; pub type LayoutErr = LayoutError;
/// The parameters given to `Layout::from_size_align` /// The `LayoutError` is returned when the parameters given
/// to `Layout::from_size_align`
/// or some other `Layout` constructor /// or some other `Layout` constructor
/// do not satisfy its documented constraints. /// do not satisfy its documented constraints.
#[stable(feature = "alloc_layout_error", since = "1.50.0")] #[stable(feature = "alloc_layout_error", since = "1.50.0")]