ferrous-systems / rust-training

Learning materials for the Rust Training courses by Ferrous Systems
127 stars 16 forks source link

Change Compound Types example to avoid dereferencing #112

Closed amanjeev closed 8 months ago

amanjeev commented 8 months ago

This line - Shape::Circle(radius) if *radius > 10 => { makes it for a confusing given this is one of the first lecture slides. Change this example all over these slides so that deref is not done.

hashtag: avoid star or a void star