From 147add565453132a6f4acc4dfdfadf2d062a34ad Mon Sep 17 00:00:00 2001 From: robin Date: Thu, 8 Aug 2024 15:33:20 +0200 Subject: [PATCH] src/main.rs aktualisiert --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a96271f..8864b9c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,7 +22,7 @@ fn start() { println!("Hello what is your Name?"); let mut name = String::new(); io::stdin().read_line(&mut name).expect("error"); - if name.is_empty() == true{ + if name.trim.is_empty() == true{ invalid_input(3) }else { println!("Hello {}", name);