mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 05:13:29 +08:00
fix code error
This commit is contained in:
parent
db3b53a12f
commit
3c18c9371e
@ -679,7 +679,7 @@ use rand::Rng;
|
|||||||
fn main() {
|
fn main() {
|
||||||
println!("Guess the number!");
|
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 {
|
loop {
|
||||||
println!("Please input your guess.");
|
println!("Please input your guess.");
|
||||||
|
Loading…
Reference in New Issue
Block a user