diff options
| author | c4rlo <carlo.teubner@gmail.com> | 2016-04-23 11:58:58 +0100 |
|---|---|---|
| committer | c4rlo <carlo.teubner@gmail.com> | 2016-04-23 11:58:58 +0100 |
| commit | abf00c65c28fbbfe5d26caa118cf40c22ecb8079 (patch) | |
| tree | a09443f0f823d5cbfcd1cb0d7a50c6281d2a0e25 /src/doc | |
| parent | bb4b0d894364409c64087c622fdb173b52ad1005 (diff) | |
| download | rust-abf00c65c28fbbfe5d26caa118cf40c22ecb8079.tar.gz rust-abf00c65c28fbbfe5d26caa118cf40c22ecb8079.zip | |
subtyping.md: typo fix
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/nomicon/subtyping.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/nomicon/subtyping.md b/src/doc/nomicon/subtyping.md index 5def5c39033..eb940e811a4 100644 --- a/src/doc/nomicon/subtyping.md +++ b/src/doc/nomicon/subtyping.md @@ -53,7 +53,7 @@ inferred variance, so `Fn(T)` is invariant in `T`). Some important variances: * `&'a T` is variant over `'a` and `T` (as is `*const T` by metaphor) -* `&'a mut T` is variant with over `'a` but invariant over `T` +* `&'a mut T` is variant over `'a` but invariant over `T` * `Fn(T) -> U` is invariant over `T`, but variant over `U` * `Box`, `Vec`, and all other collections are variant over the types of their contents |
