You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-14 18:14:29 +02:00
Consistently inline formatting arguments (#2413)
This commit is contained in:
@ -20,7 +20,7 @@ fn main() {
|
||||
let mut p2 = p1.clone(); // Clone trait adds `clone` method.
|
||||
p2.name = String::from("EldurScrollz");
|
||||
// Debug trait adds support for printing with `{:?}`.
|
||||
println!("{:?} vs. {:?}", p1, p2);
|
||||
println!("{p1:?} vs. {p2:?}");
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user