From 87b22b1e6954fcabab8c7018c468ca0bd366c6cb Mon Sep 17 00:00:00 2001 From: Peter Blackson Date: Fri, 31 May 2024 16:19:13 +0200 Subject: [PATCH] Improve grammar in exotic-sizes --- src/exotic-sizes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exotic-sizes.md b/src/exotic-sizes.md index c4a6d240..c5f6fe04 100644 --- a/src/exotic-sizes.md +++ b/src/exotic-sizes.md @@ -8,7 +8,7 @@ This isn't always the case in Rust. Rust supports Dynamically Sized Types (DSTs): types without a statically known size or alignment. On the surface, this is a bit nonsensical: Rust *must* know the size and alignment of something in order to correctly work with it! In -this regard, DSTs are not normal types. Because they lack a statically known +this regard, DSTs are not normal types. Since they lack a statically known size, these types can only exist behind a pointer. Any pointer to a DST consequently becomes a *wide* pointer consisting of the pointer and the information that "completes" them (more on this below). @@ -40,7 +40,7 @@ struct MySuperSlice { } ``` -Although such a type is largely useless without a way to construct it. Currently the +Unfortunately, such a type is largely useless without a way to construct it. Currently the only properly supported way to create a custom DST is by making your type generic and performing an *unsizing coercion*: