fixed a small bug in fixed_widht

This commit is contained in:
Daniel Knuettel 2024-04-22 16:52:12 +02:00
parent c05c7874e3
commit 15e15322d5

View File

@ -10,7 +10,7 @@ fn fixed_width(input: &String, len: usize) -> String
if clen > len
{
let cut_to = len - 2_usize;
let cut_to = len - 3_usize;
let start_from = clen - cut_to;
let cutted_result = &input[start_from..];
let mut result: String = String::from(PLACE_HOLDER);