Compare commits
2 Commits
e405e2271f
...
3f5cb6eec8
Author | SHA1 | Date | |
---|---|---|---|
3f5cb6eec8 | |||
4aab708fad |
@ -4,3 +4,4 @@ version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
rand = "0.8.5"
|
||||
|
@ -14,10 +14,7 @@ fn main() {
|
||||
|
||||
io::stdin()
|
||||
.read_line(&mut guess)
|
||||
.expect("Failed to read line!");
|
||||
.expect("Failed to read line!"); // Use this if truly want to error out. Use pattern matching otherwise
|
||||
|
||||
println!("You guessed: {}", guess);
|
||||
|
||||
// Ended at start of Recieving user input in ch2
|
||||
// https://rust-book.cs.brown.edu/ch02-00-guessing-game-tutorial.html#receiving-user-input
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user