diff --git a/rectangles/src/main.rs b/rectangles/src/main.rs index f763b50..dd03429 100644 --- a/rectangles/src/main.rs +++ b/rectangles/src/main.rs @@ -5,10 +5,11 @@ struct Rectangle { } fn main() { + let scale = 2; let rect1 = Rectangle { - width: 30, + width: dbg!(30 * scale), height: 50, }; - println!("rect1 is {rect1:#?}"); + dbg!(&rect1); }