before adding random number gen
This commit is contained in:
parent
4aab708fad
commit
3f5cb6eec8
@ -14,10 +14,7 @@ fn main() {
|
|||||||
|
|
||||||
io::stdin()
|
io::stdin()
|
||||||
.read_line(&mut guess)
|
.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);
|
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