Skip to content

Commit 91aea5c

Browse files
committed
Auto merge of #33163 - c4rlo:patch-2, r=Manishearth
subtyping.md: typo fix
2 parents 8d0dd78 + abf00c6 commit 91aea5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/doc/nomicon/subtyping.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ inferred variance, so `Fn(T)` is invariant in `T`).
5353
Some important variances:
5454

5555
* `&'a T` is variant over `'a` and `T` (as is `*const T` by metaphor)
56-
* `&'a mut T` is variant with over `'a` but invariant over `T`
56+
* `&'a mut T` is variant over `'a` but invariant over `T`
5757
* `Fn(T) -> U` is invariant over `T`, but variant over `U`
5858
* `Box`, `Vec`, and all other collections are variant over the types of
5959
their contents

0 commit comments

Comments
 (0)