File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,10 @@ to trying to explain:
183
183
The types with \* 's are the ones we will be focusing on, as they are in
184
184
some sense "fundamental". All the others can be understood by analogy to the others:
185
185
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> ` )
190
190
191
191
> NOTE: the * only* source of contravariance in the language is the arguments to
192
192
> a function, which is why it really doesn't come up much in practice. Invoking
You can’t perform that action at this time.
0 commit comments