Auto merge of #29452 - SimonSapin:patch-14, r=alexcrichton

… I think.
This commit is contained in:
bors
2015-10-29 20:46:44 +00:00
+1 -1
View File
@@ -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;
}