To print a string centered by 15 dashes, i'd do the following:
println!("{:-^15}", "Hi :D");
But what if i wanted to control the number of dashes that are put before and after my string? I tried the following:
let margin: usize = 15;
println!("{:-^{margin}}", "Hi :(");
And other variations, but all of them don't compile. What should i do?