diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 4adbe6467a1..8939248adab 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -2825,7 +2825,7 @@ impl<T, F> Drop for DrainFilter<'_, T, F> // to execute `pred`, so we just backshift all the unprocessed // elements and tell the vec that they still exist. The backshift // is required to prevent a double-drop of the last successfully - // drained item following a panic in the predicate. + // drained item prior to a panic in the predicate. let ptr = self.drain.vec.as_mut_ptr(); let src = ptr.add(self.drain.idx); let dst = src.sub(self.drain.del); |
