Skip to content

Commit efb139d

Browse files
authored
Merge pull request #1716 from aidanhs/aphs-fn-variance
Fix typo in fn variance
2 parents 2c8c3ad + acc572e commit efb139d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0738-variance.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ as desired:
264264
PhantomData<T> // covariance
265265
PhantomData<*mut T> // invariance, but see "unresolved question"
266266
PhantomData<Cell<T>> // invariance
267-
PhantomData<fn() -> T> // contravariant
267+
PhantomData<fn(T)> // contravariant
268268
```
269269

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

0 commit comments

Comments
 (0)