Merge pull request #231 from lwintermelon/patch-1

fix a typo
pull/245/head
Yuki Okushi 4 years ago committed by GitHub
commit 45b640d76a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -91,12 +91,12 @@ Heres a table of all the wonderful ways `PhantomData` could be used:
| Phantom type | `'a` | `T` | | Phantom type | `'a` | `T` |
|-----------------------------|-----------|---------------------------| |-----------------------------|-----------|---------------------------|
| `PhantomData<T>` | - | variant (with drop check) | | `PhantomData<T>` | - | covariant (with drop check) |
| `PhantomData<&'a T>` | variant | variant | | `PhantomData<&'a T>` | covariant | covariant |
| `PhantomData<&'a mut T>` | variant | invariant | | `PhantomData<&'a mut T>` | covariant | invariant |
| `PhantomData<*const T>` | - | variant | | `PhantomData<*const T>` | - | covariant |
| `PhantomData<*mut T>` | - | invariant | | `PhantomData<*mut T>` | - | invariant |
| `PhantomData<fn(T)>` | - | contravariant | | `PhantomData<fn(T)>` | - | contravariant |
| `PhantomData<fn() -> T>` | - | variant | | `PhantomData<fn() -> T>` | - | covariant |
| `PhantomData<fn(T) -> T>` | - | invariant | | `PhantomData<fn(T) -> T>` | - | invariant |
| `PhantomData<Cell<&'a ()>>` | invariant | - | | `PhantomData<Cell<&'a ()>>` | invariant | - |

Loading…
Cancel
Save