Skip to content

Commit c8d357c

Browse files
authored
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.
2 parents 7fdd545 + dd6dd70 commit c8d357c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/alloc/layout.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ impl Layout {
540540
)]
541541
pub type LayoutErr = LayoutError;
542542

543-
/// The parameters given to `Layout::from_size_align`
543+
/// The `LayoutError` is returned when the parameters given
544+
/// to `Layout::from_size_align`
544545
/// or some other `Layout` constructor
545546
/// do not satisfy its documented constraints.
546547
#[stable(feature = "alloc_layout_error", since = "1.50.0")]

0 commit comments

Comments
 (0)