Skip to content

Commit 4a4f43e

Browse files
committed
Disambiguate comments
1 parent 9e22516 commit 4a4f43e

File tree

1 file changed

+2
-2
lines changed
  • library/alloc/src/collections/vec_deque

1 file changed

+2
-2
lines changed

library/alloc/src/collections/vec_deque/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
947947
// There are three cases of interest:
948948
// All elements are out of desired bounds
949949
// Elements are contiguous, and tail is out of desired bounds
950-
// Elements are discontiguous, and head is out of desired bounds
950+
// Elements are discontiguous
951951
//
952952
// At all other times, element positions are unaffected.
953953

@@ -987,7 +987,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
987987
self.copy_nonoverlapping(target_cap, 0, len);
988988
}
989989
} else if !self.is_contiguous() {
990-
// Head is out of bounds, tail is in bounds.
990+
// The head slice is at least partially out of bounds, tail is in bounds.
991991
// Copy the head backwards so it lines up with the target capacity.
992992
// This won't overlap because `target_cap >= self.len`.
993993
//

0 commit comments

Comments
 (0)