We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 255d919 commit f74ca38Copy full SHA for f74ca38
src/libcollections/vec.rs
@@ -678,8 +678,9 @@ impl<T> Vec<T> {
678
self.len = len;
679
}
680
681
- /// Removes an element from anywhere in the vector and returns it, replacing
682
- /// it with the last element.
+ /// Removes an element from the vector and returns it.
+ ///
683
+ /// The removed element is replaced by the last element of the vector.
684
///
685
/// This does not preserve ordering, but is O(1).
686
0 commit comments