Skip to content

Commit 8fcfd02

Browse files
committed
auto merge of rust-lang#16276 : nham/rust/fix_marker_docs, r=steveklabnik
2 parents b09a02b + 8650040 commit 8fcfd02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/kinds.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub mod marker {
125125
///
126126
/// The type system would currently infer that the value of
127127
/// 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
129129
/// any `U`). But this is incorrect because `get()` converts the
130130
/// `*()` into a `*T` and reads from it. Therefore, we should include the
131131
/// a marker field `CovariantType<T>` to inform the type checker that
@@ -166,7 +166,7 @@ pub mod marker {
166166
///
167167
/// The type system would currently infer that the value of
168168
/// 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
170170
/// any `U`). But this is incorrect because `get()` converts the
171171
/// `*()` into a `fn(T)` and then passes a value of type `T` to it.
172172
///

0 commit comments

Comments
 (0)