Rollup merge of #121149 - SebastianJL:patch-1, r=Mark-Simulacrum

Fix typo in VecDeque::handle_capacity_increase() doc comment.

Strategies B and C both show a full buffer before the capacity increase, while strategy A had one empty element left. Filled the last element in.
This commit is contained in:
Matthias Krüger 2024-02-17 18:47:41 +01:00 committed by GitHub
commit cb371797d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -485,10 +485,10 @@ unsafe fn handle_capacity_increase(&mut self, old_capacity: usize) {
// H := head
// L := last element (`self.to_physical_idx(self.len - 1)`)
//
// H L
// [o o o o o o o . ]
// H L
// A [o o o o o o o . . . . . . . . . ]
// H L
// [o o o o o o o o ]
// H L
// A [o o o o o o o o . . . . . . . . ]
// L H
// [o o o o o o o o ]
// H L