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:
commit
cac36288b5
@ -540,7 +540,8 @@ const fn inner(element_layout: Layout, n: usize) -> Result<Layout, 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
|
||||
/// do not satisfy its documented constraints.
|
||||
#[stable(feature = "alloc_layout_error", since = "1.50.0")]
|
||||
|
Loading…
Reference in New Issue
Block a user