mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03:00
Removed a single trailing space. Oops.
This commit is contained in:
+1
-1
@@ -810,7 +810,7 @@ pub unsafe fn set_len(&mut self, len: usize) {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn swap_remove(&mut self, index: usize) -> T {
|
||||
unsafe {
|
||||
// We replace self[index] with the last element. Note that if the
|
||||
// We replace self[index] with the last element. Note that if the
|
||||
// bounds check on hole succeeds there must be a last element (which
|
||||
// can be self[index] itself).
|
||||
let hole: *mut T = &mut self[index];
|
||||
|
||||
Reference in New Issue
Block a user