]> git.lizzy.rs Git - rust.git/commitdiff
Fixed typo in doc comments for swap_remove
authormandeep <mandeep@users.noreply.github.com>
Sun, 2 Apr 2017 16:21:05 +0000 (11:21 -0500)
committermandeep <mandeep@users.noreply.github.com>
Sun, 2 Apr 2017 16:21:05 +0000 (11:21 -0500)
src/libcollections/vec.rs

index 56b60a3e00341b6b4eb6605b65d16d3350e0c2b5..44ac4f1cff5889569d741ff6e7dbdbaecae8e04d 100644 (file)
@@ -678,7 +678,7 @@ pub unsafe fn set_len(&mut self, len: usize) {
         self.len = len;
     }
 
-    /// Removes an element from anywhere in the vector and return it, replacing
+    /// Removes an element from anywhere in the vector and returns it, replacing
     /// it with the last element.
     ///
     /// This does not preserve ordering, but is O(1).