Files
rust-learning-journey/ch5.md
2021-12-25 19:33:47 +01:00

6 lines
281 B
Markdown

// create a struct Rectangle, make an instance of it, then calculate the area using a function
// use dbg! at various points
// make a new rectangle instance from the first one
// when does the original rectangle stay valid, when not?
// add an area method to the Rectangle struct