Skip to content

Commit e381215

Browse files
authored
follow-up to review from Centril
1 parent d37282b commit e381215

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/subtyping.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ to trying to explain:
183183
The types with \*'s are the ones we will be focusing on, as they are in
184184
some sense "fundamental". All the others can be understood by analogy to the others:
185185

186-
* `Vec` and all other owning pointers and collections follow the same logic as `Box`
187-
* `Cell` and all other interior mutability types follow the same logic as `UnsafeCell`
188-
* `*const` follows the logic of `&T`
189-
* `*mut` follows the logic of `&mut T` (or `UnsafeCell<T>`)
186+
* `Vec<T>` and all other owning pointers and collections follow the same logic as `Box<T>`
187+
* `Cell<T>` and all other interior mutability types follow the same logic as `UnsafeCell<T>`
188+
* `*const T` follows the logic of `&T`
189+
* `*mut T` follows the logic of `&mut T` (or `UnsafeCell<T>`)
190190

191191
> NOTE: the *only* source of contravariance in the language is the arguments to
192192
> a function, which is why it really doesn't come up much in practice. Invoking

0 commit comments

Comments
 (0)