Skip to content

Commit

Permalink
Refactored swap_remove doc comment upon discussing with BurntSushi an…
Browse files Browse the repository at this point in the history
…d steveklabnik
  • Loading branch information
mandeep committed Apr 3, 2017
1 parent 255d919 commit f74ca38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libcollections/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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).
///
Expand Down

0 comments on commit f74ca38

Please sign in to comment.