Skip to content

Commit 9c3adaf

Browse files
CAD97Amanieu
andauthored
Update src/libcore/alloc/layout.rs
Co-Authored-By: Amanieu d'Antras <[email protected]>
1 parent a01b00f commit 9c3adaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/alloc/layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ impl Layout {
264264
/// (There is no way to match the default Rust representation
265265
/// layout `repr(Rust)`, as it is unspecified.)
266266
///
267-
/// Note that the resulting layout will satisfy the alignment properties
268-
/// of both `self` and `next`, in order to ensure alignment of both parts.
267+
/// Note that the alignment of the resulting layout will be the maximum of
268+
/// those of `self` and `next`, in order to ensure alignment of both parts.
269269
///
270270
/// Returns `Ok((k, offset))`, where `k` is layout of the concatenated
271271
/// record and `offset` is the relative location, in bytes, of the

0 commit comments

Comments
 (0)