Typo fix
… I think.
This commit is contained in:
parent
01fd4d6227
commit
4e8b8707bf
@ -354,7 +354,7 @@ pub fn reserve(&mut self, used_cap: usize, needed_extra_cap: usize) {
|
||||
// panic.
|
||||
|
||||
// Don't actually need any more capacity.
|
||||
// Wrapping in case they give a bas `used_cap`
|
||||
// Wrapping in case they give a bad `used_cap`
|
||||
if self.cap().wrapping_sub(used_cap) >= needed_extra_cap {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user