Skip to content

Commit d75a6fd

Browse files
authored
Merge pull request #1471 from ChromaMaster/fix/custom-types-structs-square-activity
fix: Use the point as top left corner for `square`
2 parents 27f1ff5 + ff7e638 commit d75a6fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/custom_types/structs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fn main() {
8989
1. Add a function `rect_area` which calculates the area of a `Rectangle` (try
9090
using nested destructuring).
9191
2. Add a function `square` which takes a `Point` and a `f32` as arguments, and
92-
returns a `Rectangle` with its lower left corner on the point, and a width and
92+
returns a `Rectangle` with its top left corner on the point, and a width and
9393
height corresponding to the `f32`.
9494

9595
### See also

0 commit comments

Comments
 (0)