File tree 7 files changed +13
-6
lines changed
listings/ch02-guessing-game-tutorial
no-listing-03-convert-string-to-number/src
no-listing-04-looping/src
no-listing-05-quitting/src
7 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
// ANCHOR: all
2
2
use std:: io;
3
+
3
4
// ANCHOR: ch07-04
4
5
use rand:: Rng ;
5
6
Original file line number Diff line number Diff line change 1
1
// ANCHOR: here
2
- use rand:: Rng ;
3
2
use std:: cmp:: Ordering ;
4
3
use std:: io;
5
4
5
+ use rand:: Rng ;
6
+
6
7
fn main ( ) {
7
8
// --snip--
8
9
// ANCHOR_END: here
Original file line number Diff line number Diff line change 1
- use rand:: Rng ;
2
1
use std:: cmp:: Ordering ;
3
2
use std:: io;
4
3
4
+ use rand:: Rng ;
5
+
5
6
fn main ( ) {
6
7
println ! ( "Guess the number!" ) ;
7
8
Original file line number Diff line number Diff line change 1
- use rand:: Rng ;
2
1
use std:: cmp:: Ordering ;
3
2
use std:: io;
4
3
4
+ use rand:: Rng ;
5
+
5
6
fn main ( ) {
6
7
println ! ( "Guess the number!" ) ;
7
8
Original file line number Diff line number Diff line change 1
- use rand:: Rng ;
2
1
use std:: cmp:: Ordering ;
3
2
use std:: io;
4
3
4
+ use rand:: Rng ;
5
+
5
6
fn main ( ) {
6
7
println ! ( "Guess the number!" ) ;
7
8
Original file line number Diff line number Diff line change 1
- use rand:: Rng ;
2
1
use std:: cmp:: Ordering ;
3
2
use std:: io;
4
3
4
+ use rand:: Rng ;
5
+
5
6
fn main ( ) {
6
7
println ! ( "Guess the number!" ) ;
7
8
Original file line number Diff line number Diff line change 1
- use rand:: Rng ;
2
1
use std:: cmp:: Ordering ;
3
2
use std:: io;
4
3
4
+ use rand:: Rng ;
5
+
5
6
fn main ( ) {
6
7
println ! ( "Guess the number!" ) ;
7
8
You can’t perform that action at this time.
0 commit comments