Skip to content

Commit 71241f4

Browse files
authoredFeb 17, 2020
Merge pull request #197 from JOE1994/patch-1
(minor) Add backticks around type names
2 parents 7d04d85 + e381215 commit 71241f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/subtyping.md

+4-4
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)