Skip to content

Commit ebec675

Browse files
authored
[type layout] Clarify size and alignment of pointers to unsized types
1 parent c49e89c commit ebec675

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/type-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ r[layout.pointer.thin]
5858
Pointers to sized types have the same size and alignment as `usize`.
5959

6060
r[layout.pointer.unsized]
61-
Pointers to unsized types are sized. The size and alignment is guaranteed to be at least equal to the size and alignment of a pointer.
61+
Pointers to unsized types are sized. The size and alignment of a pointer to an unsized type are guaranteed to be greater than or equal to the size and alignment of a pointer to a sized type.
6262

6363
> [!NOTE]
6464
> Though you should not rely on this, all pointers to <abbr title="Dynamically Sized Types">DSTs</abbr> are currently twice the size of the size of `usize` and have the same alignment.

0 commit comments

Comments
 (0)