Skip to content

Commit c115c3c

Browse files
committed
Add take() alias to Vec::remove()
1 parent c383e01 commit c115c3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/alloc/src/vec/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,7 @@ impl<T, A: Allocator> Vec<T, A> {
13411341
/// assert_eq!(v.remove(1), 2);
13421342
/// assert_eq!(v, [1, 3]);
13431343
/// ```
1344+
#[doc(alias = "take")]
13441345
#[stable(feature = "rust1", since = "1.0.0")]
13451346
pub fn remove(&mut self, index: usize) -> T {
13461347
#[cold]

0 commit comments

Comments
 (0)