We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a01b00f commit 9c3adafCopy full SHA for 9c3adaf
src/libcore/alloc/layout.rs
@@ -264,8 +264,8 @@ impl Layout {
264
/// (There is no way to match the default Rust representation
265
/// layout `repr(Rust)`, as it is unspecified.)
266
///
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.
+ /// 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.
269
270
/// Returns `Ok((k, offset))`, where `k` is layout of the concatenated
271
/// record and `offset` is the relative location, in bytes, of the
0 commit comments