about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-08-06 20:20:57 -0700
committerBrian Anderson <banderson@mozilla.com>2014-08-13 11:30:15 -0700
commit12e851208ddd40ca3e1b56badf5eaa32986f55a8 (patch)
tree080184c620090b065cb284cda11dce8723e6e258 /src
parentc9abc01a985a7634b8fc73d9862ecea6181c3c11 (diff)
downloadrust-12e851208ddd40ca3e1b56badf5eaa32986f55a8.tar.gz
rust-12e851208ddd40ca3e1b56badf5eaa32986f55a8.zip
collections: Deprecate Vec::tailn. Same as slice_from
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/vec.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs
index fd069f54727..b49e8aa01bb 100644
--- a/src/libcollections/vec.rs
+++ b/src/libcollections/vec.rs
@@ -912,8 +912,9 @@ impl<T> Vec<T> {
     /// assert!(vec.tailn(2) == [3, 4]);
     /// ```
     #[inline]
+    #[deprecated = "use slice_from"]
     pub fn tailn<'a>(&'a self, n: uint) -> &'a [T] {
-        self.as_slice().tailn(n)
+        self.as_slice().slice_from(n)
     }
 
     /// Returns a reference to the last element of a vector, or `None` if it is