rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.75k stars 256 forks source link

Fix typo in 3.8 Subtyping and Variance #395

Closed masloyet closed 1 year ago

masloyet commented 1 year ago

The sentence refers to lifetimes being covariant, when what I believe is meant is that references are covariant over lifetimes. It might be more correct to use "references to be covariant over lifetimes," but I followed the same structure as "Box (...) to be covariant" earlier in the sentence.