Refactored swap_remove doc comment upon discussing with BurntSushi and steveklabnik

This commit is contained in:
mandeep 2017-04-03 09:51:34 -05:00
parent 255d9191a9
commit f74ca38686

View file

@ -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).
///