Skip to content

Commit

Permalink
Fix typo in fn variance
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanhs committed Aug 15, 2016
1 parent 8f5c1cd commit acc572e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0738-variance.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ as desired:
PhantomData<T> // covariance
PhantomData<*mut T> // invariance, but see "unresolved question"
PhantomData<Cell<T>> // invariance
PhantomData<fn() -> T> // contravariant
PhantomData<fn(T)> // contravariant
```

Even better, the user doesn't really have to understand the terms
Expand Down

0 comments on commit acc572e

Please sign in to comment.