merge
This commit is contained in:
parent
dab55f5a6f
commit
01624ba8a5
|
@ -22,15 +22,13 @@ impl Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// MAIN
|
||||
fn main() {
|
||||
let rect1 = Rectangle { width:30, height:50};
|
||||
let rect2 = Rectangle { width:10, height:40};
|
||||
let rect3 = Rectangle { width:60, height:45};
|
||||
|
||||
|
||||
println!("r: {}", rect1.area());
|
||||
println!("r: {}", rect2.area());
|
||||
println!("r: {}", rect3.area());
|
||||
|
@ -43,3 +41,5 @@ fn main() {
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue