fixed a bug in fixed_width

This commit is contained in:
Daniel Knuettel 2024-07-23 13:14:22 +02:00
parent c8ee51d25e
commit 066a86539e

View File

@ -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);