Skip to content

Commit 8cf4b7f

Browse files
committed
update some usage of println! to dbg!
1 parent 687e21b commit 8cf4b7f

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

  • listings
    • ch08-common-collections
    • ch12-an-io-project/listing-12-01/src
    • ch16-fearless-concurrency/listing-16-12/src
    • ch18-patterns-and-matching

listings/ch08-common-collections/listing-08-24/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ fn main() {
77
scores.insert(String::from("Blue"), 10);
88
scores.insert(String::from("Blue"), 25);
99

10-
println!("{:?}", scores);
10+
dbg!(scores);
1111
// ANCHOR_END: here
1212
}

listings/ch08-common-collections/listing-08-25/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ fn main() {
88
scores.entry(String::from("Yellow")).or_insert(50);
99
scores.entry(String::from("Blue")).or_insert(50);
1010

11-
println!("{:?}", scores);
11+
dbg!(scores);
1212
// ANCHOR_END: here
1313
}

listings/ch08-common-collections/listing-08-26/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ fn main() {
1111
*count += 1;
1212
}
1313

14-
println!("{:?}", map);
14+
dbg!(map);
1515
// ANCHOR_END: here
1616
}

listings/ch12-an-io-project/listing-12-01/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ use std::env;
22

33
fn main() {
44
let args: Vec<String> = env::args().collect();
5-
println!("{:?}", args);
5+
dbg!(args);
66
}

listings/ch16-fearless-concurrency/listing-16-12/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ fn main() {
88
*num = 6;
99
}
1010

11-
println!("m = {:?}", m);
11+
dbg!(m);
1212
}

listings/ch18-patterns-and-matching/listing-18-18/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ fn main() {
1212
}
1313
}
1414

15-
println!("setting is {:?}", setting_value);
15+
dbg!(setting_value);
1616
// ANCHOR_END: here
1717
}

listings/ch18-patterns-and-matching/listing-18-21/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ fn main() {
66
println!("found a string");
77
}
88

9-
println!("{:?}", s);
9+
dbg!(s);
1010
// ANCHOR_END: here
1111
}

listings/ch18-patterns-and-matching/listing-18-22/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ fn main() {
66
println!("found a string");
77
}
88

9-
println!("{:?}", s);
9+
dbg!(s);
1010
// ANCHOR_END: here
1111
}

0 commit comments

Comments
 (0)