More debug trait fun
This commit is contained in:
parent
31e52d6224
commit
3211792108
@ -7,7 +7,7 @@ struct Rectangle {
|
||||
fn main() {
|
||||
let rect1 = Rectangle { width: 30, height: 50 };
|
||||
|
||||
println!("rect1 is {:?}", rect1);
|
||||
println!("rect1 is {:#?}", rect1);
|
||||
|
||||
println!(
|
||||
"The area of the rectangle is {} square pixels.",
|
||||
|
Loading…
Reference in New Issue
Block a user