Rollup merge of #131512 - j7nw4r:master, r=jhpratt · qinheping/verify-rust-std@c8d357c (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit c8d357c

Fixing rustDoc for LayoutError. I started reading the the std lib from start to finish and noticed that this rustdoc comment wasn't correct.

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -540,7 +540,8 @@ impl Layout {
540 540 )]
541 541 pub type LayoutErr = LayoutError;
542 542
543 -/// The parameters given to `Layout::from_size_align`
543 +/// The `LayoutError` is returned when the parameters given
544 +/// to `Layout::from_size_align`
544 545 /// or some other `Layout` constructor
545 546 /// do not satisfy its documented constraints.
546 547 #[stable(feature = "alloc_layout_error", since = "1.50.0")]