Add "For example,"
This commit is contained in:
parent
1f78509afe
commit
98a5506647
@ -14,9 +14,9 @@ address.
|
|||||||
|
|
||||||
Fat pointers are pointers referencing Dynamically Sized Types (also called
|
Fat pointers are pointers referencing Dynamically Sized Types (also called
|
||||||
DSTs). DSTs don't have a statically known size, therefore they can only exist
|
DSTs). DSTs don't have a statically known size, therefore they can only exist
|
||||||
behind some kind of pointer that contains additional information. Slices and
|
behind some kind of pointer that contains additional information. For example,
|
||||||
trait objects are DSTs. In the case of slices, the additional information the
|
slices and trait objects are DSTs. In the case of slices, the additional
|
||||||
fat pointer holds is their size.
|
information the fat pointer holds is their size.
|
||||||
|
|
||||||
To fix this error, don't try to cast directly between thin and fat pointers.
|
To fix this error, don't try to cast directly between thin and fat pointers.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user