Skip to content

Commit 06e4a01

Browse files
committed
Improve wording on layout.pointer.unsized
Changing this sentence to use "are", as this PR does, is correct. But it's clear too why the original had said "is", as with the change it reads a bit awkwardly. Adding the work "each" corrects this, so let's do that.
1 parent ebec675 commit 06e4a01

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 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.
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)