Compare commits

...

2 Commits

Author SHA1 Message Date
3f5cb6eec8 before adding random number gen 2025-03-18 22:02:37 -05:00
4aab708fad add rand dependency 2025-03-18 22:02:22 -05:00
2 changed files with 2 additions and 4 deletions

View File

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

View File

@ -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
} }