fixed a bug in fixed_width
This commit is contained in:
parent
c8ee51d25e
commit
066a86539e
|
@ -12,7 +12,7 @@ fn fixed_width(input: &String, len: usize) -> String
|
||||||
|
|
||||||
if clen > len
|
if clen > len
|
||||||
{
|
{
|
||||||
let cut_to = len - 3_usize;
|
let cut_to = len - 1_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