fixed a small bug in fixed_widht
This commit is contained in:
parent
c05c7874e3
commit
15e15322d5
|
@ -10,7 +10,7 @@ fn fixed_width(input: &String, len: usize) -> String
|
||||||
|
|
||||||
if clen > len
|
if clen > len
|
||||||
{
|
{
|
||||||
let cut_to = len - 2_usize;
|
let cut_to = len - 3_usize;
|
||||||
let start_from = clen - cut_to;
|
let start_from = clen - cut_to;
|
||||||
let cutted_result = &input[start_from..];
|
let cutted_result = &input[start_from..];
|
||||||
let mut result: String = String::from(PLACE_HOLDER);
|
let mut result: String = String::from(PLACE_HOLDER);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user