Skip to content

Commit b5f7500

Browse files
masloyetmloyet
andauthored
Fix typo in 3.8 Subtyping and Variance (#395)
Co-authored-by: Mason Loyet <mloyet@andrew.cmu.edu>
1 parent 1f3e4cd commit b5f7500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subtyping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ we inherited invariance as soon as we put our reference inside an `&mut T`.
335335

336336
As it turns out, the argument for why it's ok for Box (and Vec, Hashmap, etc.) to
337337
be covariant is pretty similar to the argument for why it's ok for
338-
lifetimes to be covariant: as soon as you try to stuff them in something like a
338+
references to be covariant: as soon as you try to stuff them in something like a
339339
mutable reference, they inherit invariance and you're prevented from doing anything
340340
bad.
341341

0 commit comments

Comments
 (0)