fix code error

This commit is contained in:
王嘉欣 2021-06-16 14:53:22 +08:00 committed by GitHub
parent db3b53a12f
commit 3c18c9371e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -679,7 +679,7 @@ use rand::Rng;
fn main() {
println!("Guess the number!");
let secret_number = rand::thread_rng().gen_range(1, 101);
let secret_number = rand::thread_rng().gen_range(1..101);
loop {
println!("Please input your guess.");