Skip to content

Commit e9ec18a

Browse files
committed
Merge remote-tracking branch 'origin/pr/2542'
2 parents ac4d627 + ebdd05a commit e9ec18a

File tree

43 files changed

+624
-678
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+624
-678
lines changed

listings/ch02-guessing-game-tutorial/listing-02-02/Cargo.lock

+40-44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch02-guessing-game-tutorial/listing-02-02/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
rand = "0.5.5"
10+
rand = "0.8.3"

listings/ch02-guessing-game-tutorial/listing-02-03/Cargo.lock

+41-45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch02-guessing-game-tutorial/listing-02-03/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
rand = "0.5.5"
10+
rand = "0.8.3"

listings/ch02-guessing-game-tutorial/listing-02-03/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88
println!("Guess the number!");
99

1010
// ANCHOR: ch07-04
11-
let secret_number = rand::thread_rng().gen_range(1, 101);
11+
let secret_number = rand::thread_rng().gen_range(1..101);
1212
// ANCHOR_END: ch07-04
1313

1414
println!("The secret number is: {}", secret_number);

0 commit comments

Comments
 (0)