mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
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:
commit
cb371797d6
@ -485,10 +485,10 @@ impl<T, A: Allocator> VecDeque<T, A> {
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user