More debug trait fun
This commit is contained in:
parent
31e52d6224
commit
3211792108
@ -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.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user