diff options
| author | Michael Pankov <work@michaelpankov.com> | 2015-10-08 01:08:33 +0300 |
|---|---|---|
| committer | Michael Pankov <work@michaelpankov.com> | 2015-10-08 01:08:33 +0300 |
| commit | 11a7773a3acfb3c48d56cecb6a5ab076f9d71dfe (patch) | |
| tree | 6ffb7a98001214b9799ec89c7394e0984123216b /src/libcore | |
| parent | 3fbbee6ad5a8ce225702910deb712dc88f4412c3 (diff) | |
| download | rust-11a7773a3acfb3c48d56cecb6a5ab076f9d71dfe.tar.gz rust-11a7773a3acfb3c48d56cecb6a5ab076f9d71dfe.zip | |
Fix comment gone astray
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/fmt/num.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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..]) }; |
