Refactored swap_remove doc comment upon discussing with BurntSushi and steveklabnik
This commit is contained in:
parent
255d9191a9
commit
f74ca38686
1 changed files with 3 additions and 2 deletions
|
|
@ -678,8 +678,9 @@ impl<T> Vec<T> {
|
|||
self.len = len;
|
||||
}
|
||||
|
||||
/// Removes an element from anywhere in the vector and returns it, replacing
|
||||
/// it with the last element.
|
||||
/// Removes an element from the vector and returns it.
|
||||
///
|
||||
/// The removed element is replaced by the last element of the vector.
|
||||
///
|
||||
/// This does not preserve ordering, but is O(1).
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue