Removed a single trailing space. Oops.
This commit is contained in:
parent
6faa295cec
commit
e529dfd590
1 changed files with 1 additions and 1 deletions
|
@ -810,7 +810,7 @@ impl<T> Vec<T> {
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub fn swap_remove(&mut self, index: usize) -> T {
|
pub fn swap_remove(&mut self, index: usize) -> T {
|
||||||
unsafe {
|
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
|
// bounds check on hole succeeds there must be a last element (which
|
||||||
// can be self[index] itself).
|
// can be self[index] itself).
|
||||||
let hole: *mut T = &mut self[index];
|
let hole: *mut T = &mut self[index];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue