From 11a7773a3acfb3c48d56cecb6a5ab076f9d71dfe Mon Sep 17 00:00:00 2001 From: Michael Pankov Date: Thu, 8 Oct 2015 01:08:33 +0300 Subject: [PATCH] Fix comment gone astray --- src/libcore/fmt/num.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcore/fmt/num.rs b/src/libcore/fmt/num.rs index 5d8f5858078..23642790a88 100644 --- a/src/libcore/fmt/num.rs +++ b/src/libcore/fmt/num.rs @@ -85,8 +85,9 @@ trait GenericRadix { *byte = self.digit(n.to_u8()); // Store the digit in the buffer. curr -= 1; if x == zero { + // No more digits left to accumulate. break - }; // No more digits left to accumulate. + }; } } let buf = unsafe { str::from_utf8_unchecked(&buf[curr..]) };