Skip to content

Commit 3e81ed1

Browse files
committed
Polygon class to Rectangle class for simplicity
1 parent ccfd28a commit 3e81ed1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/reference.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@
218218
* @example
219219
* <div class='norender'>
220220
* <code>
221-
* class Polygon {
221+
* class Rectangle {
222222
* constructor(name, height, width) {
223223
* this.name = name;
224224
* this.height = height;
225225
* this.width = width;
226226
* }
227227
* }
228-
* let square = new Polygon('square', 1, 1); // creating new instance of Polygon Class.
228+
* let square = new Rectangle('square', 1, 1); // creating new instance of Polygon Class.
229229
* console.log(square.width); // prints '1' to the console
230230
* </code>
231231
* </div>

0 commit comments

Comments
 (0)