We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6faa295 commit e529dfdCopy full SHA for e529dfd
src/liballoc/vec.rs
@@ -810,7 +810,7 @@ impl<T> Vec<T> {
810
#[stable(feature = "rust1", since = "1.0.0")]
811
pub fn swap_remove(&mut self, index: usize) -> T {
812
unsafe {
813
- // We replace self[index] with the last element. Note that if the
+ // We replace self[index] with the last element. Note that if the
814
// bounds check on hole succeeds there must be a last element (which
815
// can be self[index] itself).
816
let hole: *mut T = &mut self[index];
0 commit comments