File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ pub mod marker {
125
125
///
126
126
/// The type system would currently infer that the value of
127
127
/// the type parameter `T` is irrelevant, and hence a `S<int>` is
128
- /// a subtype of `S<~[ int] >` (or, for that matter, `S<U>` for
128
+ /// a subtype of `S<Box< int> >` (or, for that matter, `S<U>` for
129
129
/// any `U`). But this is incorrect because `get()` converts the
130
130
/// `*()` into a `*T` and reads from it. Therefore, we should include the
131
131
/// a marker field `CovariantType<T>` to inform the type checker that
@@ -166,7 +166,7 @@ pub mod marker {
166
166
///
167
167
/// The type system would currently infer that the value of
168
168
/// the type parameter `T` is irrelevant, and hence a `S<int>` is
169
- /// a subtype of `S<~[ int] >` (or, for that matter, `S<U>` for
169
+ /// a subtype of `S<Box< int> >` (or, for that matter, `S<U>` for
170
170
/// any `U`). But this is incorrect because `get()` converts the
171
171
/// `*()` into a `fn(T)` and then passes a value of type `T` to it.
172
172
///
You can’t perform that action at this time.
0 commit comments