diff options
Diffstat (limited to 'src/libcore/alloc')
| -rw-r--r-- | src/libcore/alloc/layout.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/alloc/layout.rs b/src/libcore/alloc/layout.rs index b2a109d1cd1..3881f0685d4 100644 --- a/src/libcore/alloc/layout.rs +++ b/src/libcore/alloc/layout.rs @@ -264,8 +264,8 @@ impl Layout { /// (There is no way to match the default Rust representation /// layout `repr(Rust)`, as it is unspecified.) /// - /// Note that the resulting layout will satisfy the alignment properties - /// of both `self` and `next`, in order to ensure alignment of both parts. + /// Note that the alignment of the resulting layout will be the maximum of + /// those of `self` and `next`, in order to ensure alignment of both parts. /// /// Returns `Ok((k, offset))`, where `k` is layout of the concatenated /// record and `offset` is the relative location, in bytes, of the |
