File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ This isn't always the case in Rust.
8
8
Rust supports Dynamically Sized Types (DSTs): types without a statically
9
9
known size or alignment. On the surface, this is a bit nonsensical: Rust * must*
10
10
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
12
12
size, these types can only exist behind a pointer. Any pointer to a
13
13
DST consequently becomes a * wide* pointer consisting of the pointer and the
14
14
information that "completes" them (more on this below).
@@ -40,7 +40,7 @@ struct MySuperSlice {
40
40
}
41
41
```
42
42
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
44
44
only properly supported way to create a custom DST is by making your type generic
45
45
and performing an * unsizing coercion* :
46
46
You can’t perform that action at this time.
0 commit comments