From 4a4f43e4e9b994c729a0506d921fe9734673a20a Mon Sep 17 00:00:00 2001 From: Markus Everling Date: Sun, 26 Feb 2023 02:33:34 +0100 Subject: [PATCH] Disambiguate comments --- library/alloc/src/collections/vec_deque/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/alloc/src/collections/vec_deque/mod.rs b/library/alloc/src/collections/vec_deque/mod.rs index b30449ed06a15..d4a12509b1cf2 100644 --- a/library/alloc/src/collections/vec_deque/mod.rs +++ b/library/alloc/src/collections/vec_deque/mod.rs @@ -947,7 +947,7 @@ impl VecDeque { // There are three cases of interest: // All elements are out of desired bounds // Elements are contiguous, and tail is out of desired bounds - // Elements are discontiguous, and head is out of desired bounds + // Elements are discontiguous // // At all other times, element positions are unaffected. @@ -987,7 +987,7 @@ impl VecDeque { self.copy_nonoverlapping(target_cap, 0, len); } } else if !self.is_contiguous() { - // Head is out of bounds, tail is in bounds. + // The head slice is at least partially out of bounds, tail is in bounds. // Copy the head backwards so it lines up with the target capacity. // This won't overlap because `target_cap >= self.len`. //