Skip to content
Snippets Groups Projects
Commit 668d1062 authored by iliya.saroukha's avatar iliya.saroukha
Browse files

returning .trim() of user input

parent 2f9ab428
No related branches found
No related tags found
No related merge requests found
...@@ -6,5 +6,5 @@ pub fn input_from_stdin() -> String { ...@@ -6,5 +6,5 @@ pub fn input_from_stdin() -> String {
let _ = stdout().flush().unwrap(); let _ = stdout().flush().unwrap();
stdin().read_line(&mut input).expect("Failed to read input"); stdin().read_line(&mut input).expect("Failed to read input");
return input; return input.trim().to_string();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment