Compare commits

..

No commits in common. "3f5cb6eec8df15ff3a9ef45bf881672672fe0bb0" and "e405e2271f17f7f8ffc04259375b182e3345a901" have entirely different histories.

2 changed files with 4 additions and 2 deletions

View File

@ -4,4 +4,3 @@ version = "0.1.0"
edition = "2021"
[dependencies]
rand = "0.8.5"

View File

@ -14,7 +14,10 @@ fn main() {
io::stdin()
.read_line(&mut guess)
.expect("Failed to read line!"); // Use this if truly want to error out. Use pattern matching otherwise
.expect("Failed to read line!");
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
}