Skip to content

Commit f2e711e

Browse files
committed
fix minor mistake in comments describing VecDeque resizing
1 parent 3d0e6be commit f2e711e

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,12 @@ impl<T, A: Allocator> VecDeque<T, A> {
491491
// A [o o o o o o o . . . . . . . . . ]
492492
// L H
493493
// [o o o o o o o o ]
494-
// H L
495-
// B [. . . o o o o o o o . . . . . . ]
494+
// H L
495+
// B [. . . o o o o o o o o . . . . . ]
496496
// L H
497497
// [o o o o o o o o ]
498-
// L H
499-
// C [o o o o o . . . . . . . . . o o ]
498+
// L H
499+
// C [o o o o o o . . . . . . . . o o ]
500500

501501
// can't use is_contiguous() because the capacity is already updated.
502502
if self.head <= old_capacity - self.len {

0 commit comments

Comments
 (0)