diff --git a/src/main.rs b/src/main.rs index e80c10f..28d641d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ use clap::Parser; fn main() { let cli = CLI::parse(); - print!("\n"); + println!(); match &cli.command { Some(Commands::Square(square::Command { base, height })) => square::view(*base, *height), diff --git a/src/shapes/triangle/view.rs b/src/shapes/triangle/view.rs index 3eecdba..4f8e5de 100644 --- a/src/shapes/triangle/view.rs +++ b/src/shapes/triangle/view.rs @@ -31,7 +31,7 @@ pub fn view( tui::title("Area"), tui::content(triangle.get_area().to_string().as_str()) ); - print!("\n"); + println!(); println!( "{}{}", tui::title("Perimeter"),