]> git.lizzy.rs Git - rust.git/commitdiff
Remove references to `~[]` in core::kinds::marker docs.
authornham <hamann.nick@gmail.com>
Tue, 5 Aug 2014 19:23:06 +0000 (15:23 -0400)
committernham <hamann.nick@gmail.com>
Tue, 5 Aug 2014 19:23:23 +0000 (15:23 -0400)
src/libcore/kinds.rs

index f6a88b341960791fcee7964a58d34912d9500473..958a2ba02f61656f9f41f01313e4dd2ff9e95907 100644 (file)
@@ -125,7 +125,7 @@ pub mod marker {
     ///
     /// The type system would currently infer that the value of
     /// the type parameter `T` is irrelevant, and hence a `S<int>` is
-    /// a subtype of `S<~[int]>` (or, for that matter, `S<U>` for
+    /// a subtype of `S<Box<int>>` (or, for that matter, `S<U>` for
     /// any `U`). But this is incorrect because `get()` converts the
     /// `*()` into a `*T` and reads from it. Therefore, we should include the
     /// a marker field `CovariantType<T>` to inform the type checker that
@@ -166,7 +166,7 @@ pub mod marker {
     ///
     /// The type system would currently infer that the value of
     /// the type parameter `T` is irrelevant, and hence a `S<int>` is
-    /// a subtype of `S<~[int]>` (or, for that matter, `S<U>` for
+    /// a subtype of `S<Box<int>>` (or, for that matter, `S<U>` for
     /// any `U`). But this is incorrect because `get()` converts the
     /// `*()` into a `fn(T)` and then passes a value of type `T` to it.
     ///