Make method Vec::remove() public

This commit is contained in:
Jorge Aparicio 2014-03-18 11:53:32 -05:00
parent af9368452d
commit 1f4c63049e

View File

@ -427,7 +427,7 @@ impl<T> Vec<T> {
}
}
fn remove(&mut self, index: uint) -> Option<T> {
pub fn remove(&mut self, index: uint) -> Option<T> {
let len = self.len();
if index < len {
unsafe { // infallible