How to print well-formatted tables to the console?
The syntax is like the str.format syntax in Python. This: fn main() { println!( “{0: <10} | {1: <10} | {2: <10} | {3: <10}”, “total”, “blanks”, “comments”, “code” ); println!(“{0: <10} | {1: <10} | {2: <10} | {3: <10}”, 0, 0, 0, 0); println!(“{0: <10} | {1: <10} | {2: <10} | {3: … Read more