Skip to content

Commit 7230056

Browse files
committed
Fix function name in solution 17.1
1 parent d632312 commit 7230056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/solutions/17_1_shapes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<script>
55
let cx = document.querySelector("canvas").getContext("2d");
66

7-
function parallelogram(x, y) {
7+
function trapezoid(x, y) {
88
cx.beginPath();
99
cx.moveTo(x, y);
1010
cx.lineTo(x + 50, y);
@@ -13,7 +13,7 @@
1313
cx.closePath();
1414
cx.stroke();
1515
}
16-
parallelogram(30, 30);
16+
trapezoid(30, 30);
1717

1818
function diamond(x, y) {
1919
cx.translate(x + 30, y + 30);

0 commit comments

Comments
 (0)