diff --git a/src/main.rs b/src/main.rs index 4ac8bc8..1a3aec1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,6 +22,10 @@ fn main() { if bytes_read == 0 { println!(); exit(); + } else { + let user_input = user_input.trim(); + + println!("{}", user_input); } } }