Skip to content

Commit 98f0a82

Browse files
committed
Improve Layout::extend docs
1 parent 9c3adaf commit 98f0a82

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libcore/alloc/layout.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,10 @@ impl Layout {
258258

259259
/// Creates a layout describing the record for `self` followed by
260260
/// `next`, including any necessary padding to ensure that `next`
261-
/// will be properly aligned, but *no trailing padding*. In order
262-
/// to match C representation layout `repr(C)`, you should call
263-
/// `pad_to_align` after extending the layout with all fields.
261+
/// will be properly aligned, but *no trailing padding*.
262+
///
263+
/// In order to match C representation layout `repr(C)`, you should
264+
/// call `pad_to_align` after extending the layout with all fields.
264265
/// (There is no way to match the default Rust representation
265266
/// layout `repr(Rust)`, as it is unspecified.)
266267
///

0 commit comments

Comments
 (0)