Make method Vec::remove() public
This commit is contained in:
parent
af9368452d
commit
1f4c63049e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user