From 4c22b4b3bfb7b878d91b39b486a098215a053eb2 Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Sat, 27 Apr 2019 21:28:37 +0530 Subject: missed some diffs --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3c7c815..28af074 100644 --- a/src/main.rs +++ b/src/main.rs @@ -132,8 +132,8 @@ fn radix_fmt(number: f64, obase: usize) -> Result { fn thousand_sep(inp: &str) -> String { let mut result_string = String::new(); - for (i,c) in inp.to_string().chars().rev().enumerate(){ - if i % 3 == 0 && i != 0 && c.to_string() != "-"{ + for (i,c) in inp.to_string().chars().rev().enumerate() { + if i % 3 == 0 && i != 0 && c.to_string() != "-" { result_string.push(','); } result_string.push(c) -- cgit v1.2.3