Skip to content

Commit

Permalink
Unrolled build for rust-lang#131512
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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.
  • Loading branch information
rust-timer authored Oct 11, 2024
2 parents ce697f9 + 8b754fb commit cb7d5b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/alloc/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,8 @@ impl Layout {
)]
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")]
Expand Down

0 comments on commit cb7d5b3

Please sign in to comment.