Skip to content

Commit 255d919

Browse files
committed
Fixed typo in doc comments for swap_remove
1 parent 5e122f5 commit 255d919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ impl<T> Vec<T> {
678678
self.len = len;
679679
}
680680

681-
/// Removes an element from anywhere in the vector and return it, replacing
681+
/// Removes an element from anywhere in the vector and returns it, replacing
682682
/// it with the last element.
683683
///
684684
/// This does not preserve ordering, but is O(1).

0 commit comments

Comments
 (0)