]> git.lizzy.rs Git - rust.git/commitdiff
subtyping.md: typo fix
authorc4rlo <carlo.teubner@gmail.com>
Sat, 23 Apr 2016 10:58:58 +0000 (11:58 +0100)
committerc4rlo <carlo.teubner@gmail.com>
Sat, 23 Apr 2016 10:58:58 +0000 (11:58 +0100)
src/doc/nomicon/subtyping.md

index 5def5c3903353ef85575993ccaa6c0173db1b316..eb940e811a4fa13f30d55ef44272b9add7b38b4a 100644 (file)
@@ -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