You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-07 06:55:42 +02:00
Use dbg! instead of println! in day 3 & 4. (#2669)
Part of #2478 to clean up code blocks when all that is needed is a trivial debug print statement. Co-authored-by: Eric Githinji <egithinji@google.com>
This commit is contained in:
@ -14,8 +14,8 @@ fn main() {
|
||||
let a = Rc::new(10);
|
||||
let b = Rc::clone(&a);
|
||||
|
||||
println!("a: {a}");
|
||||
println!("b: {b}");
|
||||
dbg!(a);
|
||||
dbg!(b);
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user