We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fef41d commit 442b83aCopy full SHA for 442b83a
src/main.rs
@@ -68,7 +68,7 @@ fn input(prompt: &str) -> String {
68
io::stdout().flush().unwrap();
69
let mut result = String::new();
70
io::stdin().read_line(&mut result).ok();
71
- return result.trim().parse().ok().unwrap();
+ result.trim().to_string()
72
}
73
74
/// 実行モード
0 commit comments