From 4e8b8707bf3a0af3f2c08a6dd64c5155ace7a765 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 30 Oct 2015 01:00:39 +0900 Subject: [PATCH] Typo fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … I think. --- src/liballoc/raw_vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs index 996a590043a..eef8f3e94e0 100644 --- a/src/liballoc/raw_vec.rs +++ b/src/liballoc/raw_vec.rs @@ -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; }