cat-town
Dan Buch 4 years ago
parent 0e143ca100
commit d64444550a
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

@ -1,3 +1,4 @@
#[derive(Debug)]
struct Rectangle { struct Rectangle {
width: u32, width: u32,
height: u32, height: u32,
@ -9,6 +10,8 @@ fn main() {
height: 50, height: 50,
}; };
println!("rect1 is {:#?}", rect1);
println!( println!(
"The area of the rectangle is {} square pixels.", "The area of the rectangle is {} square pixels.",
area(&rect1) area(&rect1)

Loading…
Cancel
Save