Skip to content

Commit 336f758

Browse files
authored
Merge pull request #452 from pczarn/patch-1
Improve grammar in exotic-sizes
2 parents 1f3f7c4 + 7f59f3f commit 336f758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/exotic-sizes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This isn't always the case in Rust.
88
Rust supports Dynamically Sized Types (DSTs): types without a statically
99
known size or alignment. On the surface, this is a bit nonsensical: Rust *must*
1010
know the size and alignment of something in order to correctly work with it! In
11-
this regard, DSTs are not normal types. Because they lack a statically known
11+
this regard, DSTs are not normal types. Since they lack a statically known
1212
size, these types can only exist behind a pointer. Any pointer to a
1313
DST consequently becomes a *wide* pointer consisting of the pointer and the
1414
information that "completes" them (more on this below).
@@ -40,7 +40,7 @@ struct MySuperSlice {
4040
}
4141
```
4242

43-
Although such a type is largely useless without a way to construct it. Currently the
43+
Unfortunately, such a type is largely useless without a way to construct it. Currently the
4444
only properly supported way to create a custom DST is by making your type generic
4545
and performing an *unsizing coercion*:
4646

0 commit comments

Comments
 (0)