Skip to content

Commit

Permalink
Merge pull request #131 from anderejd/master
Browse files Browse the repository at this point in the history
Added missing "things".
  • Loading branch information
Gankra authored Apr 16, 2019
2 parents 43be8c9 + 5fb237f commit 02ef0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phantom-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ We do this using `PhantomData`, which is a special marker type. `PhantomData`
consumes no space, but simulates a field of the given type for the purpose of
static analysis. This was deemed to be less error-prone than explicitly telling
the type-system the kind of variance that you want, while also providing other
useful such as the information needed by drop check.
useful things such as the information needed by drop check.

Iter logically contains a bunch of `&'a T`s, so this is exactly what we tell
the PhantomData to simulate:
Expand Down

0 comments on commit 02ef0fb

Please sign in to comment.