You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disclaimer: This is just feedback on the content from the perspective of a learner, not a "real" bug or issue.
I found quite a bit of advice online recommending "the book", followed by Rust By Example to get your feet wet with understanding rust. The book defines a rectangle in Chapter 5 as a height and width. RBE defines a rectangle as 2 points in space. Then, similar to the book, RBE asks the reader to implement a function that computes the area of a rectangle. It actually took me a bit of googling to figure out how a rectangle could be defined in such a way.
It felt un-intuitive to me to have these two official resources diverge in this way, and came across as confusing to me. (I found myself asking, "Why am I googling the different ways that a Rectangle can be represented in code on a day where I sat down to practice some rust concepts I learned from the book"