Skip to content

Commit 442b83a

Browse files
author
梶塚太智
committed
Update main.rs
1 parent 6fef41d commit 442b83a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn input(prompt: &str) -> String {
6868
io::stdout().flush().unwrap();
6969
let mut result = String::new();
7070
io::stdin().read_line(&mut result).ok();
71-
return result.trim().parse().ok().unwrap();
71+
result.trim().to_string()
7272
}
7373

7474
/// 実行モード

0 commit comments

Comments
 (0)