Skip to content

Commit 3e6e100

Browse files
Merge pull request #177 from petertodd/2019-12-long-live-contravariance
Remove mention of contravariance possibly getting scrapped
2 parents 8be35b2 + ce08025 commit 3e6e100

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/phantom-data.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ Here’s a table of all the wonderful ways `PhantomData` could be used:
9696
| `PhantomData<&'a mut T>` | variant | invariant |
9797
| `PhantomData<*const T>` | - | variant |
9898
| `PhantomData<*mut T>` | - | invariant |
99-
| `PhantomData<fn(T)>` | - | contravariant (*) |
99+
| `PhantomData<fn(T)>` | - | contravariant |
100100
| `PhantomData<fn() -> T>` | - | variant |
101101
| `PhantomData<fn(T) -> T>` | - | invariant |
102102
| `PhantomData<Cell<&'a ()>>` | invariant | - |
103-
104-
(*) If contravariance gets scrapped, this would be invariant.

0 commit comments

Comments
 (0)