More debug trait fun

This commit is contained in:
Dan Buch 2017-12-31 10:26:38 -05:00
parent 31e52d6224
commit 3211792108
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

View File

@ -7,7 +7,7 @@ struct Rectangle {
fn main() { fn main() {
let rect1 = Rectangle { width: 30, height: 50 }; let rect1 = Rectangle { width: 30, height: 50 };
println!("rect1 is {:?}", rect1); println!("rect1 is {:#?}", rect1);
println!( println!(
"The area of the rectangle is {} square pixels.", "The area of the rectangle is {} square pixels.",