Skip to content

Commit 49cff71

Browse files
authored
Merge pull request #2201 from joshlf/patch-9
[type layout] Clarify size and alignment of pointers to unsized types
2 parents c49e89c + 06e4a01 commit 49cff71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 each guaranteed to be greater than or equal to those 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)