Commit eed6626
Changed files (1)
5.2
src
5.2/src/main.rs
@@ -79,12 +79,14 @@ struct Rectangle {
}
fn main() {
+ let scale = 2;
let rect1 = Rectangle {
- width: 30,
+ width: dbg!(30 * scale),
height: 50,
};
println!("rect1 is {rect1:?}");
println!("rect1 is {rect1:#?}");
+ dbg!(&rect1);
println!(
"The area of the rectangle is {} square pixels.",
area(&rect1)