diff options
| author | CAD97 <cad97@cad97.com> | 2020-04-20 12:30:35 -0400 |
|---|---|---|
| committer | CAD97 <cad97@cad97.com> | 2020-04-20 12:30:35 -0400 |
| commit | 98f0a8241b621b28ac58c7a5e80de4ead13ab0bb (patch) | |
| tree | 3b0396923db3ae4bec9aad1436d1bb26f6b7a1fd | |
| parent | 9c3adaf89c48931229aca910c6909e6a1c4ddedf (diff) | |
| download | rust-98f0a8241b621b28ac58c7a5e80de4ead13ab0bb.tar.gz rust-98f0a8241b621b28ac58c7a5e80de4ead13ab0bb.zip | |
Improve Layout::extend docs
| -rw-r--r-- | src/libcore/alloc/layout.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libcore/alloc/layout.rs b/src/libcore/alloc/layout.rs index 3881f0685d4..6200cd24266 100644 --- a/src/libcore/alloc/layout.rs +++ b/src/libcore/alloc/layout.rs @@ -258,9 +258,10 @@ impl Layout { /// Creates a layout describing the record for `self` followed by /// `next`, including any necessary padding to ensure that `next` - /// will be properly aligned, but *no trailing padding*. In order - /// to match C representation layout `repr(C)`, you should call - /// `pad_to_align` after extending the layout with all fields. + /// will be properly aligned, but *no trailing padding*. + /// + /// In order to match C representation layout `repr(C)`, you should + /// call `pad_to_align` after extending the layout with all fields. /// (There is no way to match the default Rust representation /// layout `repr(Rust)`, as it is unspecified.) /// |
