Skip to content

Commit 1f4c630

Browse files
author
Jorge Aparicio
committed
Make method Vec::remove() public
1 parent af93684 commit 1f4c630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/vec_ng.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ impl<T> Vec<T> {
427427
}
428428
}
429429

430-
fn remove(&mut self, index: uint) -> Option<T> {
430+
pub fn remove(&mut self, index: uint) -> Option<T> {
431431
let len = self.len();
432432
if index < len {
433433
unsafe { // infallible

0 commit comments

Comments
 (0)