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
1. Add a function `rect_area` which calculates the area of a rectangle (try
90
-
using nested destructuring).
90
+
1. Add a function `rect_area` which calculates the area of a rectangle (try
91
+
using nested destructuring).
91
92
2. Add a function `square` which takes a `Point` and a `f32` as arguments, and returns a `Rectangle` with its lower left corner on the point, and a width and height corresponding to the `f32`.
92
93
93
94
### See also:
94
95
95
-
[`attributes`][attributes] and [destructuring][destructuring]
96
+
[`attributes`][attributes], [lifetime][lifetime] and [destructuring][destructuring]
0 commit comments