Skip to content

Commit

Permalink
Auto merge of #33163 - c4rlo:patch-2, r=Manishearth
Browse files Browse the repository at this point in the history
subtyping.md: typo fix
  • Loading branch information
bors committed Apr 24, 2016
2 parents 8d0dd78 + abf00c6 commit 91aea5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/nomicon/subtyping.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91aea5c

Please sign in to comment.