done chapter2

This commit is contained in:
Tyrel Souza 2023-02-25 00:45:53 -05:00
parent 76e0c04081
commit 9d23dc5e83
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E

View File

@ -5,7 +5,6 @@ use std::io;
fn main() { fn main() {
println!("Guess the number!"); println!("Guess the number!");
let secret_number = rand::thread_rng().gen_range(1..=100); let secret_number = rand::thread_rng().gen_range(1..=100);
println!("psst. the secret number is {secret_number}");
loop { loop {
println!("Please input your guess."); println!("Please input your guess.");
let mut guess = String::new(); let mut guess = String::new();